Learn R Programming

mpathr (version 1.0.4)

mpath_example: 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)

Value

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

Arguments

file

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

Examples

Run this code
# 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

Run the code above in your browser using DataLab