Learn R Programming

atlantistools (version 0.4.3)

load_fgs: Load the functional group file

Description

Read in the functional group file as dataframe.

Usage

load_fgs(fgs)

Arguments

fgs

Character string giving the connection to the functional groups file. The filename usually contains Groups and does end in .csv.

Value

A data.frame of functional group information.

See Also

Other load functions: load_box, load_bps, load_dietcheck, load_init_age, load_init, load_nc_physics, load_nc, load_rec, load_spec_mort, load_txt

Examples

Run this code
# NOT RUN {
d <- system.file("extdata", "setas-model-new-becdev", package = "atlantistools")
file <- "SETasGroups.csv"
fgs <- load_fgs(file.path(d, file))
head(fgs)

d <- system.file("extdata", "setas-model-new-trunk", package = "atlantistools")
file <- "SETasGroupsDem_NoCep.csv"
fgs <- load_fgs(file.path(d, file))
head(fgs)
# }

Run the code above in your browser using DataLab