mrgsims_modify: Methods for modifying mrgsims objects

mrgsims_modifyR Documentation

Methods for modifying mrgsims objects

Description

These functions modify the simulated data in an mrgsims object and return the modified object. Contrast with the functions in mrgsims_dplyr.

Usage

mutate_sims(.data, ...)

select_sims(.data, ...)

filter_sims(.data, ...)

Arguments

.data

a mrgsims object.

...

other arguments passed to the dplyr functions.

See Also

mrgsims_dplyr

Examples


out <- mrgsim(house(), events = ev(amt = 100))

filter_sims(out, time > 2)

mutate_sims(out, label = "abc")

select_sims(out, RESP, CP)


mrgsolve documentation built on Oct. 18, 2024, 5:12 p.m.