powered by
Process lab.js data stored in survey software by converting them from JSON data to a data.frame in long format. This function is currently in beta mode.
process_labjs( data, labjs_column, keep = NULL, remove_no_json = FALSE, verbose = FALSE, ... )
A data.frame containing the processed data.
a data.frame.
a character string specifying the column in data that contains the lab.js data.
data
a character vector specifying which additional columns in data should be kept.
logical indicating whether rows with no JSON data should be kept. Only relevant if keep contains one or more variables.
keep
logical indicating whether function should report its progress.
additional arguments passed on to fromJSON.
Felix Henninger (mailbox@felixhenninger.com)
Pascal J. Kieslich (kieslich@psychologie.uni-mannheim.de)
if (FALSE) { raw_data <- read.csv("raw_data.csv",encoding="UTF-8") dataset <- process_labjs(data=raw_data, labjs_column = "FB01_01", keep=c("CASE","SERIAL"), verbose=TRUE) }
Run the code above in your browser using DataLab