| dmutate | R Documentation |
mutate a data frame, adding random variables.
Apply formulae to a data frame
dmutate(data, ...)
data |
a data frame. |
... |
formulae and other arguments for |
idata <- data.frame(ID = 1:10)
dmutate(idata, y ~ rbinomial(0.5), wt ~ rnorm(mu,sd),
envir = list(mu = 50, sd = 20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.