Learn R Programming

simr (version 1.0.4)

lastResult: Recover an unsaved simulation

Description

Simulations can take a non-trivial time to run. If the user forgets to assign the result to a variable this method can recover it.

Usage

lastResult()

Arguments

See Also

.Last.value

Examples

Run this code
# NOT RUN {
fm1 <- lmer(y ~ x + (1|g), data=simdata)
powerSim(fm1, nsim=10)
ps1 <- lastResult()

# }

Run the code above in your browser using DataLab