represent_categorical_textdata {IPDFileCheck} | R Documentation |
Function to represent categorical data in the form - numbers (percentage)
Description
Function to represent categorical data in the form - numbers (percentage)
Usage
represent_categorical_textdata(data, variable, nrcode)
Arguments
data |
data frame |
variable |
column name |
nrcode |
non response code |
Value
the numbers (percentage) , error for failure
Examples
df <- data.frame(c(11, 78), c("m", "f"), stringsAsFactors = FALSE)
colnames(df) <- c("mark", "gender")
represent_categorical_textdata(df, "gender", NA)
[Package IPDFileCheck version 0.8.1 Index]