load_txt: Function to load various txt files from Atlantis simulations

Description Usage Arguments Value See Also Examples

View source: R/load-txt.R

Description

Function to load various txt files from Atlantis simulations

Usage

1
load_txt(file, id_col = "Time")

Arguments

file

Character string giving the connection of the output file. The filename usually contains output and ends in .txt".

id_col

Character strings giving the names of the columns which are not variables. Data from all other columns will be gathered with tidyr. Default is "Time".

Value

Dataframe in tidy format!

See Also

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

Examples

1
2
3
4
5
6
d <- system.file("extdata", "setas-model-new-becdev", package = "atlantistools")
file <- file.path(d, "outputSETASSSB.txt")
load_txt(file)

file <- file.path(d, "outputSETASYOY.txt")
load_txt(file)

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