powered by
gatherTables gathers the result of performing a certain operation over the tables of an object of class '>Dasst.
gatherTables
'>Dasst
gatherTables(object, coCol, opCol, operation, ...)
Object of class '>Dasst.
A character vector. The field names of those columns that will be copied identically into the result.
A character vector. The field names of those columns that will be gather by means of applying the required operation.
A function. The function name for the required operation. i.e. mean, sum, etc.
mean
sum
Other parameters for the apply function as additional arguments for the operation.
apply
A data.frame with the values gathered after the application of the operator to the required columns.
data.frame
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.
# NOT RUN { data(plantGrowth) plantgro12 <- gatherTables(plantGrowth[1:10], c("DAP"), c("SWAD","LWAD","GWAD"), mean) # }
Run the code above in your browser using DataLab