Learn R Programming

wordgraph (version 0.1.0)

create_a_new_unique_var_name: Provides variable name that is not already exists in the data frame data

Description

Provides a column name like the likewhatvariable that is not already exists in the data frame data.

Usage

create_a_new_unique_var_name(likewhatvariable, data.df)

Arguments

likewhatvariable

The initial name (string)

data.df

The data frame to be added

Value

A string with the suggested name.

Examples

Run this code
# NOT RUN {
newvariablename = create_a_new_unique_var_name(
            "diet1stword",
            freeassociationdata)

print(newvariablename)
# }

Run the code above in your browser using DataLab