Description Usage Arguments Value Examples
View source: R/calendar_split.R
Split Calendar Into Individual Months
1 | calendar_split(dhs, interview = "V008", calendar = "VCAL.1")
|
dhs |
dataframe containing the following variables |
interview |
name as string of the "Date of interview (CMC)" variable |
calendar |
name as string of the "Calendar" variable |
same dataframe + calendar divided with one column "CMCx" per month
1 2 3 | dataset <- dhs_extract[95:100, c("V008", "V025", "VCAL.1")]
dataset_plus_CMCx <- calendar_split(dataset, "V008", "VCAL.1")
dataset_plus_CMCx[ ,1:10]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.