Learn R Programming

SPOTMisc (version 1.19.52)

selectTarget: Select target variable in a data frame

Description

Select target variable in a data frame

Usage

selectTarget(df, target)

Value

df with entry target

Arguments

df

data frame

target

character specification of the target variable

Examples

Run this code
df <- data.frame(cbind(x=1:2,
                 y=3:4))
df <- selectTarget(df=df, target="y")

Run the code above in your browser using DataLab