Learn R Programming

saeSim (version 0.11.0)

comp_var: Compute variables in data

Description

This function is intended to be used with sim_comp_pop, sim_comp_sample or sim_comp_agg and not interactively. This is a wrapper around mutate

Usage

comp_var(...)

Arguments

...

variables interpreted in the context of that data frame.

See Also

sim_comp_pop, sim_comp_sample, sim_comp_agg

Examples

Run this code
# NOT RUN {
sim_base_lm() %>% sim_comp_pop(comp_var(yExp = exp(y)))
# }

Run the code above in your browser using DataLab