Filter.Results: filters the results of a simulation and returns only those...

Description Usage Arguments Value

Description

filters the results of a simulation and returns only those outcomes that satisfy a given criterion.

Usage

1
2
## S3 method for class 'Results'
filter(self, fun)

Arguments

fun

(outcome -> bool): A function that takes in an outcome and returns a True / False. Only the outcomes that return True will be kept; the others will be filtered out.

Value

Results: Another Results object containing only those outcomes for which the function returned True.


hayate0304/Rsymbulate documentation built on May 17, 2019, 8:20 a.m.