Use freq() to do this. It supports a lot of different classes (types of data), weights, and is even extendible by other packages. In markdown documents (like this README file), it formats as real markdown.freq(unclean$gender)Frequency tableClass: character Length: 500 Available: 500 (...
The easiest and most comprehensive way to check the data of a column/variable is to create frequency tables. Usefreq()to do this. It supports a lot of different classes (types of data), weights, and is even extendible by other packages. In markdown documents (like this README file), ...