Skip to contents

bru_mapper lists can be combined into bm_list lists.

Usage

# S3 method for class 'bru_mapper'
c(...)

# S3 method for class 'bm_list'
c(...)

# S3 method for class '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

Value

A bm_list object

Methods (by generic)

  • c(bm_list): The ... arguments should be bm_list objects.

  • [: Extract sub-list

Functions

  • c(bru_mapper): The ... arguments should be bru_mapper objects.

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()
#>   ..- 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()
#>   ..- attr(*, "class")= chr [1:3] "bru_mapper_scale" "bru_mapper" "list"
#>  - attr(*, "class")= chr [1:2] "bm_list" "list"