represent_categorical_data_include_missing {IPDFileCheck}R Documentation

Function to find the number and percentages of categories

Description

Function to find the number and percentages of categories

Usage

represent_categorical_data_include_missing(data, variable, nrcode = NA)

Arguments

data

a data frame

variable

the column name

nrcode

non response code

Value

number and percentages or error if failure

Examples

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)

[Package IPDFileCheck version 0.8.1 Index]