View source: R/mapper_collect.R
| bm_collect | R Documentation |
Constructs a concatenated collection mapping
bm_collect(mappers, hidden = FALSE)
bru_mapper_collect(...)
## S3 method for class 'bm_collect'
x[i, drop = TRUE]
## S3 method for class 'bru_mapper_collect'
x[i, drop = TRUE]
mappers |
A list of |
|
| |
... |
Arguments passed on to |
x |
object from which to extract element(s) |
i |
indices specifying element(s) to extract |
drop |
logical;
For |
[-indexing a bm_collect extracts a subset
bm_collect object (for drop FALSE) or an individual sub-mapper
(for drop TRUE, and i identifies a single element)
bru_mapper, bru_mapper_generics
Other mappers:
bm_aggregate(),
bm_const(),
bm_expr(),
bm_factor(),
bm_fm_mesh_1d,
bm_fmesher(),
bm_harmonics(),
bm_index(),
bm_linear(),
bm_logitaverage(),
bm_logsumexp(),
bm_marginal(),
bm_matrix(),
bm_multi(),
bm_pipe(),
bm_reparam(),
bm_repeat(),
bm_scale(),
bm_shift(),
bm_sum(),
bm_taylor(),
bru_get_mapper(),
bru_mapper()
(m <- bm_collect(list(
a = bm_index(2),
b = bm_index(3)
), hidden = FALSE))
ibm_eval2(m, list(a = c(1, 2), b = c(1, 3, 2)), 1:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.