fp: Data path manager

Description Usage Arguments Details Value Author(s) Examples

Description

fp is a simple utility to save / include the path to your data. It can be used to shorten the calls of functions working with files, if your data is not in the project directory.

Usage

1
fp(filename)

Arguments

filename

character. A name of the file.

Details

This function looks for a variable called path2data in your Global environment. If no such variable is present, it asks you to specify it. After specification, you can use fp as wrapper around the name of the files in your data directory.

Value

Returns the full path to the file.

Author(s)

Michal Kubista

Examples

1
2
3
4
## Not run: 
fp("name_of_my_file.csv")

## End(Not run)

kubistmi/kubimities documentation built on May 14, 2019, 2:07 p.m.