writeSmet | R Documentation |
Write data into a SMET file https://models.slf.ch/docserver/meteoio/SMET_specifications.pdf
writeSmet(smet, filename)
smet |
A data structure that resembles a smet file (i.e., list containing metadata and a data.frame, see example in readSmet) |
filename |
Filepath to be written |
Generates smet file
fherla, shorton
readSmet, snowprofileSno, snowprofilePrf, snowprofilePro
## First read example smet file provided in package
(Wx = readSmet(system.file('extdata', 'example.smet', package = 'sarp.snowprofile')))
## Then write Wx to a new temp file and show the file
writeSmet(Wx, filename = file.path(tempdir(), 'file.smet'))
file.show(file.path(tempdir(), 'file.smet'))
## Check whether it can be read back in
(WxNew <- readSmet(file.path(tempdir(), 'file.smet')))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.