get_groups: Collection of similar functions which get specific columns...

Description Usage Arguments Details Value See Also Examples

View source: R/get-groups.R

Description

This collection of functions uses the dataframe of functional groups created with load_fgs and creates various character strings of group names or acronym names.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Arguments

fgs

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

Details

Currently, the following character strings can be created - get_groups: Extract column "Name" - get_age_groups: Extract column "Name". Selects groups with 10 ageclasses. - get_acronym: Extract column "Code" - get_age_acronym: Extract column "Code". Selects groups with 10 ageclasses. - get_nonage_acronym: Extracts columns "Code". Only groups with ageclasses different from 10 are selected. - get_fish_acronyms: Extract column "Code". Only groups with InvertType equal to "FISH" or "SHARK" are selected.

Value

Character string.

See Also

Other get functions: get_boundary, get_colpal, get_conv_mgnbiot

Examples

1
2
3
4
5
d <- system.file("extdata", "setas-model-new-trunk", package = "atlantistools")
fgs <- file.path(d, "SETasGroupsDem_NoCep.csv")

get_age_groups(fgs)
get_nonage_acronyms(fgs)

atlantistools documentation built on Aug. 16, 2017, 9:05 a.m.