paste_func: Paste Function

Description Usage Arguments Examples

Description

Given a dataframe, a vector of column numbers, and a string, this adds the string onto each defined column name. Returns dataframe with pasted names.

Usage

1
paste_func(df, cols, string)

Arguments

df

A DataFrame

cols

A vector of column numbers to paste the string onto

string

The string to paste onto the beginning of each specified column name

Examples

1
paste_func(iris, c(1:ncol(iris)), "PASTETHIS_")

sdanyluk14/datatools documentation built on June 7, 2019, 12:50 a.m.