Learn R Programming

impactr (version 0.4.2)

impactr_example: Get path to example data

Description

impactr comes with some example ActiGraph accelerometer raw data files in its inst/extdata directory. This function make them easy to access.

Usage

impactr_example(file = NULL)

Value

If file = NULL, it returns the file names of the example data files, else it returns the path to the example data.

Arguments

file

A character string with the file name. If NULL, the example files will be listed.

Examples

Run this code
impactr_example()
impactr_example("hip-raw.csv")

Run the code above in your browser using DataLab