getResponse {analysisPipelines}R Documentation

Obtains the response term from the formula

Description

Obtains the response term from the formula

Usage

getResponse(f)

Arguments

f

formula from which term is to be extracted.

Details

This is a helper function to extract the response variable from a formula

Value

The response variable in the formula as a string

Examples

library(analysisPipelines)
getResponse(y ~ x1 + x2)

[Package analysisPipelines version 1.0.2 Index]