lastResult: Recover an unsaved simulation

View source: R/oops.R

lastResultR Documentation

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()

See Also

.Last.value

Examples

fm1 <- lmer(y ~ x + (1|g), data=simdata)
powerSim(fm1, nsim=10)
ps1 <- lastResult()


pitakakariki/simr documentation built on April 22, 2023, 12:07 a.m.