Learn R Programming

spiro (version 0.2.3)

spiro_example: Get path to spiro example

Description

spiro_example returns the file path for example data files within the spiro package.

Usage

spiro_example(file = NULL)

Value

A character vector with the absolute file path of the example file(s).

Arguments

file

Name of the file, either "zan_gxt", "zan_ramp" or "hr_ramp.tcx". Leave the argument empty to get a vector with the paths of all three example files.

Examples

Run this code
# get path of a specific example data file
spiro_example("zan_gxt")

# get all paths of example data files
spiro_example()

Run the code above in your browser using DataLab