get_interval: Get interval

Description Usage Arguments

Description

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.

Usage

1
get_interval(semadata)

Arguments

semadata

An R dataframe containing both sema_id and datedlv variables (most likely, a sema dataset -after- processing with clean_sema)


seanchrismurphy/cleansema documentation built on May 23, 2019, 9:34 a.m.