Learn R Programming

rbi (version 1.0.1)

factorise: Convert character columns to factors in data

Description

Convert character columns to factors in data

Usage

factorise(variables, levels)

Value

the variables argument with factorised columns

Arguments

variables

a list object, the names of which should be the variable names and values should be either single values or data frames

levels

factor levels, as a named list, each representing one column

Author

Sebastian Funk