# NOT RUN {
### Create factor vector
ourFactor <- factor(mtcars$gear, levels=c(3,4,5),
labels=c("three", "four", "five"));
### Add some missing values
factorWithMissings <- ourFactor;
factorWithMissings[10] <- factorWithMissings[20] <- NA;
### Show frequencies
freq(ourFactor);
freq(factorWithMissings);
### ... Or for all of them at one
frequencies(ourFactor, factorWithMissings);
# }
Run the code above in your browser using DataLab