create_a_new_unique_var_nameR Documentation

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.

Author(s)

Epaminondas Diamantopoulos

Examples

newvariablename = create_a_new_unique_var_name(
            "diet1stword",
            freeassociationdata)

print(newvariablename)