make_path: Path-function generator.

Description Usage Arguments Value Examples

Description

This function creates another function that paste the directory set up in the call to make_path to the argument passed in the current call, allowing better directory parametrazion, auto-explaining code and less typing. See example for usage.

Usage

1
make_path(path)

Arguments

path

Base path of interest.

Value

A function that paste the directory set up in the call to make_path to the argument passed in the current call.

Examples

1
2
3
4
5
6
res.dir <- make_path("results")
tmp.dir <- make_path("/tmp")

## Eg for use with write.csv() or pdf()
res.dir("my_results.csv")
tmp.dir("graph.pdf")

yapomif documentation built on May 2, 2019, 4:51 p.m.