Return only the values of a list that meet a certain predicate.
1 | filter(xs, f)
|
xs |
list. The list to filter. |
f |
function. The predicate function to apply. It should return TRUE or FALSE for each element of the list. This can also be arguments to 'dplyr::filter'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.