List_to_True_False: List_to_True_False

Description Usage Arguments Details

View source: R/list_to_true_false.R

Description

This is a function to convert categorical data from a single-column format a more usefule dummy-variable format For example, in the single column format data would appear as follows: Months 1 jan mar ... 2 feb mar ... 3 mar ...

Usage

1
List_to_True_False(x, seperator)

Arguments

x

a col

seperator

Details

Using this function the output would be: Jan Feb Mar ... 1 TRUE FALSE TRUE ... 2 FALSE TRUE TRUE ... 3 FALSE FALSE TRUE ...


l-gorman/leosRfunctions documentation built on May 23, 2021, 8:37 a.m.