Description Usage Arguments Details Value Examples
Return columns with matching conditions for the column attributes (cattr) table.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | filter_col_q(x, ...)
filter_col(x, ...)
## S3 method for class 'zoocat'
filter_col_q(x, cond, ...)
## S3 method for class 'zoocat'
filter_col(x, cond, ...)
## S3 method for class 'zoomly'
filter_col_q(x, cond, mon.repro = NULL, ...)
## S3 method for class 'zoomly'
filter_col(x, cond, mon.repro = NULL, ...)
|
x |
the object. |
... |
other arguments. |
cond |
logical predicates of conditions. Multiple conditions are
combined with |
mon.repro |
the reprocessing month vector, which is used for |
For filter_col
, when the argument mon.repro
is not NULL
, reprocess_month
will be called in the last step.
a "zoocat
" or "zoomly
" object.
1 2 3 4 5 6 7 8 9 10 11 12 13 | x <- matrix(1 : 20, nrow = 5)
colAttr <- data.frame(month = c(2, 3, 5, 6), name = c(rep('xxx', 3), 'yyy'))
zc <- zoocat(x, order.by = 1991 : 1995, colattr = colAttr)
filter_col(zc, month > 2)
filter_col(zc, month > 2)
filter_col(zc, month > 2 & name == 'yyy')
mat <- matrix(1:48, ncol = 12)
colAttr <- data.frame(month = rep(1 : 12))
zm <- zoomly(mat, order.by = 1991 : 1994, colattr = colAttr)
filter_col(zm, mon.repro = 1 : 3)
filter_col(zm, mon.repro = c(-9 : 8))
filter_col(zm, cond = month %in% 1 : 3, mon.repro = c(-24 : 3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.