bru_mapper
lists can be combined into bm_list
lists.
Usage
# S3 method for bru_mapper
c(...)
# S3 method for bm_list
c(...)
# S3 method for bm_list
[(x, i)
Arguments
- ...
Objects to be combined.
- x
bm_list
object from which to extract element(s)- i
indices specifying elements to extract
Examples
m <- c(A = bru_mapper_const(), B = bru_mapper_scale())
str(m)
#> List of 2
#> $ A: list()
#> ..- attr(*, "class")= chr [1:3] "bru_mapper_const" "bru_mapper" "list"
#> $ B:List of 1
#> ..$ is_linear: logi TRUE
#> ..- attr(*, "class")= chr [1:3] "bru_mapper_scale" "bru_mapper" "list"
#> - attr(*, "class")= chr [1:2] "bm_list" "list"
str(m[2])
#> List of 1
#> $ B:List of 1
#> ..$ is_linear: logi TRUE
#> ..- attr(*, "class")= chr [1:3] "bru_mapper_scale" "bru_mapper" "list"
#> - attr(*, "class")= chr [1:2] "bm_list" "list"