write_apsim_met | R Documentation |
Write an object of class ‘met’ to disk
write_apsim_met(met, wrt.dir = NULL, filename = NULL)
met |
object of class ‘met’ |
wrt.dir |
directory where the file will be written |
filename |
optional alternative filename |
Write a met file to disk. It takes an object of class ‘met’
at the moment the read-write cycle will strip comments
does not create an R object, it only writes to disk
extd.dir <- system.file("extdata", package = "apsimx")
ames.met <- read_apsim_met("Ames.met", src.dir = extd.dir)
ames.met
tmp.dir <- tempdir()
write_apsim_met(ames.met, wrt.dir = tmp.dir, filename = "Ames.met")
## Here I write to a temporary directory, but change this to where
## you want to write to
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.