get_maps_to_categories: Map from levels proposed by as.factor to each integer and...

Description Usage Arguments Value See Also

View source: R/get_maps_to_categories.R

Description

Creates maps from the levels proposed by as.factor when it is applied to each integer and logical column in a data.frame. The maps are given in a list with names given by the names of the integer and logical columns in the data set. Each item is either a named logical or named integer vector, with names given by the unique factor levels, and values given by the unique values of the corresponding column.

Usage

1

Arguments

X

data.frame; a incomplete data set including any of numeric, logical, integer, factor and ordered data types.

Value

named list; names are given by the column names of X which have logical or integer data, and each item is either a named logical or named integer vector, with names given by the unique factor levels due to passing the column to as.factor and the values are given by the corresponding unique values of the column,

See Also

as.factor


stephematician/miForang documentation built on July 23, 2019, 5:11 p.m.