
Last chance! 50% off unlimited learning
Sale ends in
This function reads an m-Path CSV file into a tibble, an extension of a
data.frame
.
read_mpath(file, meta_data, warn_changed_columns = TRUE)
A tibble with the m-Path data.
A string with the path to the m-Path file.
A string with the path to the meta data file.
Warn if the question text, type of question, or type of answer has
changed during the study. Default is TRUE
and may print up to 50 warnings.
Note that this function has been tested with the meta data version v.1.1, so it is advised to use that version of the meta data. In the m-Path dashboard, change the version in 'Export data' > "export version".
write_mpath()
for saving the data back to a CSV file.
# We can use the function mpath_examples to get the path to the example data
basic_path <- mpath_example(file ="example_basic.csv")
meta_path <- mpath_example("example_meta.csv")
data <- read_mpath(file = basic_path,
meta_data = meta_path)
Run the code above in your browser using DataLab