R: "[<-" S3 Replacement method for 'smet-class' object
[<-.smet
R Documentation
'[<-' S3 Replacement method for smet-class object
Description
'[<-' S3 Replacement method for smet-class object
Usage
## S3 replacement method for class 'smet'
x[rows = "all", fields = "all",
date.field = "timestamp", offset = 0, multiplier = 1, nodata = -9999,
...] <- value
Arguments
x
a smet-class object
rows
rows of the x data which will be replaced.
fields
column number or fields of x which will be replaced.
date.field
field name of the Date and Time variable. Default is "timestamp". If it is not NA, it is always returned.
offset
scalar value of the unit multiplier for each new field name which is not previously present.
multiplier
scalar value of the unit multiplier for each new field name which is not previously present.
nodata
numeric value used to replce NA. It is used if no-data value is not specified in the header of x.
...
further argument for [ method
value
a object to be replaced
Value
The "replaced" smet-class object.
Note
In case fields is a character vector, the elements whose names is in value is replaced.
Author(s)
Emanuele Cordano
Examples
rm(list=ls())
### SMET Rifugio Vaccarone
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(RSMET)
Loading required package: stringr
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/RSMET/extract_replacemethod.Rd_%03d_medium.png", width=480, height=480)
> ### Name: [<-.smet
> ### Title: "[<-" S3 Replacement method for 'smet-class' object
> ### Aliases: [<-,extract_replacemethod [<-.smet
>
> ### ** Examples
>
> rm(list=ls())
>
>
> ### SMET Rifugio Vaccarone
>
>
>
>
>
> dev.off()
null device
1
>