read_mpath | R Documentation |
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)
file |
A string with the path to the m-Path file. |
meta_data |
A string with the path to the meta data file. |
warn_changed_columns |
Warn if the question text, type of question, or type of answer has
changed during the study. Default is |
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".
A tibble with the m-Path data.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.