Description Usage Arguments Value Examples
Aggregate columns of a "zoocat
" object by given column attributes fields.
1 |
x |
a " |
by |
a character string indicates the field of column attributes. |
FUN |
a function to be applied to all data subsets. |
... |
additional arguments to be passed to the method. |
a "zoocat
" object.
1 2 3 4 5 6 | # This is the air quality example from package reshape2
names(airquality) <- tolower(names(airquality))
aqm <- melt(airquality, id = c("month", "day"), na.rm=TRUE)
zc <- cast2zoocat(aqm, index.var = 'month', value.var = 'value', fun.aggregate = mean)
aggregate_col(zc, by = 'variable', FUN = max)
aggregate_col(zc, by = 'variable', FUN = max, na.rm = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.