Methods for handling output with dplyr verbs

# S3 method for mrgsims
as.tbl(x, ...)

# S3 method for mrgsims
pull(.data, ...)

# S3 method for mrgsims
filter(.data, ...)

filter_sims(.data, ...)

# S3 method for mrgsims
group_by(.data, ..., add = FALSE)

# S3 method for mrgsims
distinct(.data, ..., .keep_all = FALSE)

# S3 method for mrgsims
mutate(.data, ...)

mutate_sims(.data, ...)

# S3 method for each
summarise(.data, funs, ...)

# S3 method for mrgsims
summarise(.data, ...)

# S3 method for mrgsims
do(.data, ..., .dots)

# S3 method for mrgsims
select(.data, ...)

select_sims(.data, ...)

# S3 method for mrgsims
slice(.data, ...)

as_data_frame.mrgsims(.data_, ...)

# S3 method for mrgsims
as_tibble(.data_, ...)

Arguments

x

mrgsims object

...

passed to other methods

.data

passed to various dplyr functions

add

passed to dplyr::group_by

.keep_all

passed to dplyr::distinct

funs

passed to dplyr::summarise_each

.dots

passed to various dplyr functions

.data_

mrgsims object

Details

For the select_sims function, the dots ... must be either compartment names or variables in $CAPTURE. An error will be generated if no valid names are selected or the names for selection are not found in the simulated output.