Join Barton Poulson for an in-depth discussion in this video Calculating frequencies, part of Up and Running with R.
- View Offline
When you're exploring your data to make sure you meet your assumptions, or to…find interesting exceptions, graphics are an excellent first step.…However, most analyses also require the precision of numbers in addition to the…heuristic value of graphics.…Just as we started with graphics for categorical variables, we'll also start…with statistics for categorical variables.…The most common statistics in this case are frequencies, which is what we'll do first.…I am going to use the data set that I have been using so far; social network.…I'm going to come down here, and…because I have it saved in my default location, which I set to be the Desktop, I…can simply run this line to read the CSV file.…
I see in the console that that command ran fine.…In the top right in the Workspace, I see that I've now loaded the date set sn,…for social network; it's got 202 observations in 5 variables.…The next thing is to create the default table, and this is a frequency table.…It does it in alphabetical order, and it looks like this when I run it.…
The course continues with examples on how to create charts and plots, check statistical assumptions and the reliability of your data, look for data outliers, and use other data analysis tools. Finally, learn how to get charts and tables out of R and share your results with presentations and web pages.
- What is R?
- Installing R
- Creating bar character for categorical variables
- Building histograms
- Calculating frequencies and descriptives
- Computing new variables
- Creating scatterplots
- Comparing means