Learn R Programming

MSEtool (version 3.7.3)

DataDir: Directory of the data in the installed package on your computer

Description

A way of locating where the package was installed so you can find example data files and code etc.

Usage

DataDir(stock = NA)

Value

The file path to the object

Arguments

stock

Character string representing the name of a .csv file e.g. 'Snapper', 'Rockfish'

Author

T. Carruthers

Examples

Run this code
if (FALSE) {
tilefish_location <- DataDir("Gulf_blue_tilefish")
tilefish_Data <- new("Data", tilefish_location)
}

Run the code above in your browser using DataLab