append_charnum_cols: Character and numeric columns

Description Usage Arguments

View source: R/append-charnum-cols.R

Description

Append data.frame with character and numeric columns

Usage

1
append_charnum_cols(x, cols, old = "_c", new = "_n", beside = TRUE)

Arguments

x

A data.frame

cols

A vector of column names to be transformed from character to numeric.

old, new

A suffix added to the old/new columns; NULL will not change name; these cannot be the same

beside

Logical, if TRUE will add new columns beside old; otherwise will move to the end.


jmbarbone/dirtyr documentation built on Sept. 23, 2020, 4:05 a.m.