retain | R Documentation |
Retain values within primary keys
retain(df, value_var, event, outside = NA)
df |
data frame in which to apply the retain. |
value_var |
variable containing the value to be retained. |
event |
flag to trigger the retain. |
outside |
value to. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.