gatherTables {Dasst} | R Documentation |
Gather tables of an object of class Dasst.
Description
gatherTables
gathers the result of performing a
certain operation over the tables of an object of class
Dasst
.
Usage
gatherTables(object, coCol, opCol, operation, ...)
Arguments
object |
Object of class
|
coCol |
A character vector. The field names of those columns that will be copied identically into the result. |
opCol |
A character vector. The field names of those columns that will be gather by means of applying the required operation. |
operation |
A function. The function name for the
required operation. i.e. |
... |
Other parameters for the |
Details
This function gathers the result of performing a certain
operation over the tables of an object of class
Dasst
. The result is given as a
data.frame
.
Value
A data.frame
with the values gathered after
the application of the operator to the required columns.
Examples
data(plantGrowth)
plantgro12 <- gatherTables(plantGrowth[1:10], c("DAP"),
c("SWAD","LWAD","GWAD"), mean)