Installing the package
install.packages("remotes")
remotes::install_gitlab(repo = "imebi/digihero/limesurvey/lsfun" , host = "gitlab.informatik.uni-halle.de")
library(lsfun)
library(help=lsfun)
?lsfun
Load additional packages
library(tidyverse)
library(limer)
Get session key
Enter your LimeSurvey user name.
digi_lime_auth(lime_user = '[limeuser in here]')
Using the package
Classification and filtering of symptom diary entries
lk_klass() filters records for each id_s in the symptom diary according to a predefined duration (months of living) and classifies each entry according to predefined fever categories. In addition, age (in days as well as in months of life) for each individual are calculated. e. g. for 1 until 12 months of life:
?digi_lime_get_part_chunks
digi_part_dat <-
digi_lime_get_part_chunks(
surv_id = 123456,
max_tn <- 195000,
chunk_size <- 30000,
attributes = c(
"emailstatus",
"validfrom",
"validuntil",
"invited",
"reminded",
"remindercount",
"completed",
"usesleft"
)
) %>%
rename(ZN = "token",
part = "participant_info") %>%
bind_cols(.$part) %>%
select(-part) %>%
distinct()