changedfnames: changedfnames Function

Description Usage Arguments Examples

Description

This function receives a dataframe, a list of current names, and a list of equal length of new names. It returns a dataframe with the new names, or stops with an error message if it can not do so.

Usage

1
changedfnames(df, namesin, namesout)

Arguments

df

Name of the input dataframe

namesin

List of current names

namesout

List of new names. Must be of equal length as namesin.

Examples

1
changedfnames(df=data.frame(a=c(1,2),b=c(3,4)), namesin=c("a","b"), namesout=c("c","d"))

KonoAnalytics/KonostdlibR documentation built on May 8, 2019, 5:47 p.m.