Learn R Programming

mdapack (version 0.0.2)

checkVariableNames: A checkVariableNames Function

Description

'checkVariableNames'checks if the given parameters' names and the columns' names of the data are the same.

Usage

checkVariableNames(raw, parameterName)

Arguments

raw

Data in data.frame format.

parameterName

Factor or characters of parameters' names.

Value

Returns a list of the correct variable names

Examples

Run this code
# NOT RUN {
data(iris)
checkVariableNames(iris, c("Sepal.Length","Sepal.Width","Petal.Length","Petal.Width","Species"))
# }

Run the code above in your browser using DataLab