Learn R Programming

analysisPipelines (version 1.0.2)

getResponse: 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.

Value

The response variable in the formula as a string

Details

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

Examples

Run this code
# NOT RUN {
library(analysisPipelines)
getResponse(y ~ x1 + x2)
# }

Run the code above in your browser using DataLab