2.2.2.generic.pems.element.handlers {pems.utils} | R Documentation |
pems elements objects can be manipulated using generic functions like print, plot and summary in a similar fashion to objects of other R classes.
## S3 method for class 'pems.element' x[i, ..., force = TRUE, wrap = FALSE] ## S3 replacement method for class 'pems.element' x[i, ..., force = TRUE, wrap = FALSE] <- value ## S3 method for class 'pems.element' as.pems(x, ...) ## S3 method for class 'pems.element' print(x, ..., n = NULL, rows = NULL, width = NULL) ## S3 method for class 'pems.element' plot(x, y = NULL, xlab = NULL, ylab = NULL, ...) ## S3 method for class 'pems.element' units(x) ## S3 replacement method for class 'pems.element' units(x) <- value ## S3 method for class 'pems.element' summary(object, ...) ## S3 method for class 'pems.element' round(x, ...)
x,object |
(An Object of pems.element class). For direct use with |
i |
Element indices, which operate in a similar fashion to |
... |
Addition options, typically passed to associated default method(s). |
force, wrap |
(Logicals) Data element handling options: |
value |
(Vector) For calls in |
n, rows, width |
(Numerics) For |
y, xlab, ylab |
(other plot arguments). As with the default |
Generic functions provide appropriate (conventional) handling of objects of
'pems.elements'
class:
print(pems.element)
provides a (to console) description of the
supplied pems.element
object.
plot(pems.element)
generates a standard R plot of the supplied
pems.element
.
units(pems.element)
extracts the units from the supplied
pems.element
.
Special round(pems.element)
is required to as a wrapper to round.Date
and
round.POSIXt
handling.
Karl Ropkins
#the velocity pems.element in pems.1 pems.1$velocity