specify: Specify the response and predictors (if any) from dataframe.

Description Usage Arguments Value Examples

Description

Specify the response and predictors (if any) from dataframe.

Usage

1
specify(x, response, explanatory = NULL)

Arguments

x

A data frame

response

Character. One column which will be chosen as response

explanatory

Character. The columns to be the explanatory variables

Value

Dataframe containing one column for response variable and zero or more columns for the explanatory variables. The first column is always the response.

Examples

1
2
# select Sepal.Length data from data frame `iris`
specify(iris,"Sepal.Length")

UBC-MDS/rfer documentation built on May 14, 2019, 11:02 p.m.