Skip to contents

Assign name to components in the concatenate, joint and twoStageLCA methods

Usage

compNameAssign(linked_component_list, group_name)

Arguments

linked_component_list

list of components extracted

group_name

A vector of names for the datasets

Value

renamed list of linked_component_list

Examples

linked_component_list = list(matrix(c(1:4), nrow = 2), matrix(c(1:4), nrow = 2))
group_name = c("x", "y")
compNameAssign(linked_component_list, group_name)
#> $x
#>      x_subcomp.1 x_subcomp.2
#> [1,]           1           3
#> [2,]           2           4
#> 
#> $y
#>      y_subcomp.1 y_subcomp.2
#> [1,]           1           3
#> [2,]           2           4
#>