read_apsim_met | R Documentation |
Read into R a met file and return an object of class ‘met’
read_apsim_met(file, src.dir = ".", verbose = TRUE)
file |
path to met file |
src.dir |
optional source directory |
verbose |
whether to suppress all messages and warnings |
Read a met file into R
This function uses S3 classes and stores the additional information as attributes
I use a more strict format than APSIM and reading and writing will not
preserve all the details. For example, at this moment comments are lost through
the process of read and write unless they are added back in manually.
Also, empty lines are ignored so these will be lost as well in the read and write process.
an object of class ‘met’ with attributes
extd.dir <- system.file("extdata", package = "apsimx")
ames.met <- read_apsim_met("Ames.met", src.dir = extd.dir)
ames.met
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.