first_time_flag | R Documentation |
Returns an indicator variable for the first time a condition is met in a dataframe. Useful for tagging when an event started or ended in a panel dataset.
first_time_flag(var, value)
var |
column name on which you wish to run funciton |
value |
value for which you are searching for first occurence |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.