powered by
Select target variable in a data frame
selectTarget(df, target)
df with entry target
data frame
character specification of the target variable
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