convert_sample: Apply functions to SIMPle.sample objects

View source: R/convert_sample.R

convert_sampleR Documentation

Apply functions to SIMPle.sample objects

Description

Apply functions to SIMPle.sample objects

Usage

convert_sample(sample, margin, fun, args = list(), postproc = NULL)

Arguments

sample

SIMPle.sample object, see draw_sample

margin

either integer vector with values 1,2 or 3 or character vector with values "obs", "var" or "group" of maximum length 3. Function fun is applied in the specified order.

fun

function to be applied

args

list of arguments to be passed to fun

postproc

function (or function name) to be applied after the conversion


maxwestphal/SIMPle documentation built on April 11, 2024, 4:07 p.m.