Fills a vector with either previous value if no fill is given or with the fill argument if the predicate is true for the vector entry
1 |
.v |
vector to fill |
.predicate |
either an atomic in this case values that are equal to it will be filled a formula: will be transformed to a function by calling as_mapper a function: will be used as is |
.default |
default value if no previous correct value was encountered |
.fill |
if set all element of the vector for which the predicate is true will be replaced by this value. If NULL, the previous correct value (or default if non encountered) will be used. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.