make_inds: Append indicator variables to a data frame based on a single...

Description Usage Arguments Value Source

View source: R/CEDS.R

Description

Append indicator variables to a data frame based on a single factor variable

Usage

1

Arguments

data

a data frame

col

character, name of the factor column to generate indicators for

Value

a data frame with the factor levels appended as columns

Source

http://stackoverflow.com/questions/35943455/creating-indicator-variable-columns-in-dplyr-chain


strategicdataproject/OpenSDPsynthR documentation built on June 20, 2020, 6:17 a.m.