Description Usage Arguments Value
filters the results of a simulation and returns only those outcomes that satisfy a given criterion.
1 2 | ## S3 method for class 'Results'
filter(self, fun)
|
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. |
Results: Another Results object containing only those outcomes for which the function returned True.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.