Learn R Programming

esvis (version 0.2.0)

parse_form: Parse formula

Description

Parse formula

Usage

parse_form(formula, data, order = TRUE)

Arguments

formula

A formula of the type out ~ group where out is the outcome variable and group is the grouping variable. Note this variable can include any arbitrary number of groups.

data

The data frame that the data in the formula come from.

order

Logical. Defaults to TRUE. Should the groups be ordered according to their mean?

Value

A list of data split by the grouping factor.