data_path: Get path to data file

View source: R/data_fcts.R

data_pathR Documentation

Get path to data file

Description

This is a helper function of book "Analyzing Financial and Economic Data with R" by Marcelo S. Perlin. With this function you'll be able to read the tables used in the book using only the filenames.

Usage

data_path(name_dataset)

Arguments

name_dataset

Name of the dataset filename (see data_list for more details)

Value

A path to the data file

Examples

file_name <- data_list()[1]
path_to_file <- data_path(file_name)
path_to_file

msperlin/vdr documentation built on Nov. 25, 2022, 2:29 a.m.