dmutate {dmutate} | R Documentation |
mutate a data frame, adding random variables.
Description
mutate a data frame, adding random variables.
Apply formulae to a data frame
Usage
dmutate(data, ...)
Arguments
data |
a data frame |
... |
formulae and other arguments for |
Examples
idata <- dplyr::data_frame(ID = 1:10)
dmutate(idata, y ~ rbinomial(0.5), wt ~ rnorm(mu,sd),
envir = list(mu = 50, sd = 20))
[Package dmutate version 0.1.3 Index]