summarise_at: Summarise multSimData

Description Usage Arguments Value See Also Examples

Description

This method overrides the default summarise_at method from package dplyr to work with data generated by function getMultSimData. It basically groups the data before summarising, so that the functions are applied for every time value separately.

Usage

1
2
3
4
5
6
7
summarise_at(.tbl, .vars, .funs, ...)

## S3 method for class 'multSimData'
summarise_at(.tbl, .vars, .funs, ...)

## S3 method for class 'multSim'
summarise_at(.tbl, .vars, .funs, ...)

Arguments

.tbl

a data.frame returned by method getMultSimData

.vars

a character vector of variable names to apply the functions for

.funs

a list of function calls generated by funs, or a character vector of function names, or simply a function.

...

Additional arguments for the function calls in .funs.

Value

a tbl with the applied function values

See Also

summarise_at for the original method, plotStats to plot the calculated values

Examples

1
2
3
4
data("simplePdmp")
md <- getMultSimData(multSim(simplePdmp, 1:10))
summarise_at(md, .vars = c("f", "d"), .funs = c("min", "max"))
summarise_at(md, .vars = "f", .funs = dplyr::funs(10 * quantile(., 0.75)))

CharlotteJana/pdmpsim documentation built on July 2, 2019, 5:37 a.m.