Description Usage Arguments Value Examples
Function to find the number and percentages of categories
1 | represent_categorical_data_include_missing(data, variable, nrcode = NA)
|
data, |
a data frame |
variable |
the column name |
nrcode |
non response code |
number and percentages or error if failure
1 2 3 | this.df <- data.frame(c(11, 78), c("m", "f"), stringsAsFactors = FALSE)
colnames(this.df) <- c("mark", "gender")
represent_categorical_data_include_missing(this.df, "gender", NA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.