represent_categorical_data_include_missing: Function to find the number and percentages of categories

View source: R/IPDFilecheck.R

represent_categorical_data_include_missingR 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)

sheejamk/IPDFileCheck documentation built on March 10, 2024, 3:14 p.m.