[<-.smet | R Documentation |
'[<-'
S3 Replacement method for smet-class
object'[<-'
S3 Replacement method for smet-class
object
## S3 replacement method for class 'smet'
x[
rows = "all",
fields = "all",
date.field = "timestamp",
offset = 0,
multiplier = 1,
nodata = -9999,
...
] <- value
x |
a |
rows |
rows of the |
fields |
column number or fields of |
date.field |
field name of the Date and Time variable. Default is |
offset |
scalar value of the unit multiplier for each new |
multiplier |
scalar value of the unit multiplier for each new |
nodata |
numeric value used to replce |
... |
further argument for |
value |
a object to be replaced |
The "replaced" smet-class
object.
In case fields
is a character vector, the elements whose names is in value
is replaced.
Emanuele Cordano
rm(list=ls())
### SMET Rifugio Vaccarone
x <- smet(system.file('examples/PIEM001114.smet',package="RSMET"))
x[,1:3]
x[,"VAR07"] <- NA
x[,"VAR08"] <- 123
x
y <- x
y[,1:2] <- x[,1:2]
y[,c("TSS1","TSS2"),offset=273.15] <- 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.