step_two: Calculate the spread, ratio and product of two variable

Description Usage Arguments Value

View source: R/step_two.R

Description

Calculate the spread, ratio and product of two variable

Usage

1
step_two(rec, o_vars, n_var, type = c("spread", "ratio", "product"))

Arguments

rec

A rec object

o_vars

A character vector of length 2, specifying the two variables to include in the calculation.

n_var

The name of the new variable

type

Which calculation to perform, "spread", "ratio" or "product"

Value

A rec object


MohoWu/oilPrep documentation built on Dec. 17, 2021, 4:20 a.m.