either | R Documentation |
Return y if x satisfies given condition, otherwise return x
either(x, y, condition = is.na)
x |
target value |
y |
alternatively returned value |
condition |
a function return logical values for each x |
x or y, whose length is euqal to length_x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.