enum.Rd
Just a quick function to simply format numbers for reports
enum(data)
data | A data.frame or vector |
---|
A pretty-formatted number of observations
This function can handle a data.frame, in which case it will return the number of rows (observations), or a vector. If it is not a logical vector, it will return the length of the vector. If it is a logical vector, it will return the sum of TRUE values, after first removing any missing values.
# NOT RUN { library(gnevar) enum(envr_agree) # }