mpath_example: Get path to m-Path example data

View source: R/mpath_example.R

mpath_exampleR Documentation

Get path to m-Path example data

Description

This function provides an easy way to access the m-Path example files.

Usage

mpath_example(file = NULL)

Arguments

file

the name of the file to be accessed. If NULL, the function will return a list of all the example files.

Value

a character string with the path to the m-Path example data

Examples

# Example 1: access 'example_basic.csv' data

mpath_example('example_basic.csv') # returns the full path to the file
'example_basic.csv'

# Example 2: list all the example files

mpath_example() # returns the example files as a vector


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