load_ramlegacy {ramlegacy}R Documentation

Read-in dataframes from downloaded RAM Legacy Database

Description

Returns a list of specific dataframes or a list of all the dataframes present in the requested version of the database.

Usage

load_ramlegacy(version = NULL, tables = NULL, ram_path = NULL)

Arguments

version

A character vector of length 1 specifying the version number of the database. As of writing this package, the available versions are "1.0", "2.0", "2.5", "3.0", "4.3", "4.40", "4.41" and "4.44". If version argument is not specified then it defaults to newest version (v4.44).

tables

A character vector specifying the names of particular dataframes to load from a specified version. If not specified then a list containing all the dataframes within the requested version is returned. For a description of the different tables present in the database please see below.

ram_path

path to the local directory where the specified version of the RAM Legacy Stock Excel Assessment Database was downloaded. By default this path is set to within the rappdirs directory and can be viewed using calling the function ram_dir and specifying the version number inside the function call. Although this is not the recommended approach load_ramlegacy supports reading in the database's dataframes from a user-specified path provided that the database is present at the specified path as an rds object.

Description of the dataframes present in the database

Newer versions (v4.40 onwards) also contains tables of individual most-used time series

See Also

Other ramlegacy functions: download_ramlegacy, ram_dir

Examples



# first download version 4.44 of the database
download_ramlegacy(version = "4.44")

# get a list containing area and bioparams tables
# from version 4.44 database
load_ramlegacy(version = "4.44", tables = c("area", "bioparams"))


[Package ramlegacy version 0.2.0 Index]