Skip to contents

This function just sets the root directory for filepaths. It simplifies data-loading and dynamically pulls in the username to the filepath.

Usage

set_root(datasets = F)

Arguments

datasets

set to TRUE if root should be the CPMM datasets folder, otherwise leave as FALSE to have root at CPMM folder.

Value

a vector with the filepath root.

Examples

set_root()
#> [1] "C:/Users//Gavi/Measurement, Evaluation and Learning - Documents"

# can also save as root object to re-use when loading multiple data files
root <- set_root()