fncols: Create columns if they don't exist

Description Usage Arguments Value Examples

View source: R/utils.R

Description

This function is taken from [here](https://stackoverflow.com/a/45858044).

Usage

1
fncols(data, cname)

Arguments

data

Dataset you want to change the columns for.

cname

Column names to check if exists.

Value

Returns a dataframe with the extra columns if they don't exist.

Examples

1
#fncols(iris, "species")

sefabey/tweetWrangleR documentation built on May 4, 2019, 4:17 a.m.