This function takes a sema dataset (must contain variables sema_id, timedlv and datedlv) and calculates the time interval between successive rows. It will overwrite the interval variable created by clean_sema, but may be useful for re-calculating intervals on datasets you have trimmed to only included surveys with responses.
1 | get_interval(semadata)
|
semadata |
An R dataframe containing both sema_id and datedlv variables (most likely, a sema dataset -after- processing with clean_sema) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.