Learn R Programming

atlantistools (version 0.4.3)

load_txt: Function to load various txt files from Atlantis simulations

Description

Function to load various txt files from Atlantis simulations

Usage

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab