Рет қаралды 8,594
This tutorial demonstrates how to compute counts (i.e., frequencies) in R, where counts are a common (and easily interpreted) type of descriptive statistics and are useful for describing variables that have nominal or ordinal measurement scales. I demonstrate how to use the table function from base R to compute counts in table form and how to use the barplot function from base R to create simple bar charts to visually display the results. Finally, I demonstrate how to convert a variable to an ordered factor variable, which is sometimes useful when working with variables that have an ordinal measurement scale.
Other videos from my "R for Beginners" playlist can be found here: • R for Beginners . The videos in this playlist focus on simulated human resources (HR) data.
The data file(s) referenced in this R tutorial (and other R tutorials on this playlist) can be downloaded as a compressed (zipped) folder by visiting the following link: github.com/dav.... Click "Clone or Download" followed by "Download ZIP".