Just a quick function to simply format numbers for reports

enum(data)

Arguments

data

A data.frame or vector

Value

A pretty-formatted number of observations

Details

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.

Examples

# NOT RUN {
library(gnevar)
enum(envr_agree)
# }