form_resp {tidysdm}R Documentation

Get the response variable from a formula

Description

This is the counterpart of rsample::form_pred.

Usage

form_resp(x)

Arguments

x

a formula

Details

Note: this might not behave well with functions such as log(y). But neither does form_pred

modified from https://stackoverflow.com/questions/13217322/how-to-reliably-get-dependent-variable-name-from-formula-object

Value

character the name of the response


[Package tidysdm version 0.9.5 Index]