Objects from the Class
Objects can be created by calls of the form new("WqData", d)
, where d
is a data.frame. d
should have columns named time, site, depth, variable, value
of class "DateTime", "factor", "numeric", "factor", "numeric"
, respectively.Slots
.Data
:- Object of class
"data.frame"
as described above Automatically created slots: names
:- Object of class
"character"
containing the names of the original data.frame. row.names
:- Object of class
"data.frameRowLabels"
containing the row names of the original data.frame. .S3Class
:- Object of class
"character"
describing which S3 class is extended by this class.
Extends
Class "data.frame"
, directly.
Class "list"
, by class "data.frame", distance 2.
Class "oldClass"
, by class "data.frame", distance 2.
Class "vector"
, by class "data.frame", distance 3.Methods
- [
signature(x = "WqData")
: x[i, ] Extracts a subset of the data, based on either row numbers or a logical expression involving the columns (time, site, depth, variable, value
). The returned value is also a WqData
object.
- plot
signature(x = "WqData")
: plot(x, vars, num.col = NULL) Multiple plots, each containing boxplots of data at each site for the same variable. An argument vars
can be given specifying a character string of variables to be plotted. Otherwise, only the first 10 variables will be plotted if the number of variables is more than 10. The number of columns plotted is determined automatically unless num.col
is given an integer value.
- summary
signature(x = "WqData")
: summary(x) Date range, number of observations for each combination of site and variable, and quartiles of variable values.
- tsMake
signature(x = "WqData")
: see tsMake,WqData-method