read_mpath: Read m-Path data

View source: R/read_mpath.R

read_mpathR Documentation

Read m-Path data

Description

[Stable]

This function reads an m-Path CSV file into a tibble, an extension of a data.frame.

Usage

read_mpath(file, meta_data, warn_changed_columns = TRUE)

Arguments

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 TRUE and may print up to 50 warnings.

Details

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".

Value

A tibble with the m-Path data.

See Also

write_mpath() for saving the data back to a CSV file.

Examples


# 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)


mpathr documentation built on June 8, 2025, 11:08 a.m.