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 pems.element
[ (x, i, ..., force = TRUE, wrap = FALSE)# S3 method for pems.element
[ (x, i, ..., force = TRUE, wrap = FALSE) <- value
# S3 method for pems.element
as.pems(x, ...)
# S3 method for pems.element
print(x, ..., n = NULL, rows = NULL, width = NULL)
# S3 method for pems.element
plot(x, y = NULL, xlab = NULL, ylab = NULL, ...)
# S3 method for pems.element
units(x)
# S3 method for pems.element
units(x) <- value
# S3 method for pems.element
summary(object, ...)
# S3 method for pems.element
round(x, ...)
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
.
(An Object of pems.element class). For direct use with print
, plot
, summary
,
etc. NOTE: Object naming (i.e., x
or object
)
is determined in parent or base function in R, so naming
varies by method.
Element indices, which operate in a similar fashion to vector
indices.
Addition options, typically passed to associated default method(s).
(Logicals) Data element handling options: force
forces data to fit it destination;
wrap
expands data to fit its destination by wrapping the source pems.element
.
(Vector) For calls in pems.element[1] <- value
or units(pems.element) <- value
,
the value to be inserted.
(Numerics) For print(pems)
, number of elements, rows or screen width to foreshorten
print output to.
(other plot arguments). As with the default plot
method, y
is an optional
second data verctor, typically numeric, and xlab
and ylab
are labels to use on
x and y axes.
Karl Ropkins
#the velocity pems.element in pems.1
pems.1$velocity
Run the code above in your browser using DataLab