Skip to contents

Assign sample names to each dataset in the list of data sets, it takes two arguments, the first is the list of scores, the second is the list of sample names

Usage

sampleNameAssignSep(score_list, sample_name)

Arguments

score_list

List of score for each data.frame

sample_name

List of names for the samples in the list

Value

A list of scores for the samples

Examples

x = matrix(c(1:4), nrow = 2)
y = matrix(c(1:4), nrow = 2)
score_list = list(x, y)
sample_name = list(c("x.sample.1", "x.sample.2"), c("y.sample.1", "y.sample.2"))
sampleNameAssignSep(score_list, sample_name)
#> [[1]]
#>      x.sample.1 x.sample.2
#> [1,]          1          3
#> [2,]          2          4
#> 
#> [[2]]
#>      y.sample.1 y.sample.2
#> [1,]          1          3
#> [2,]          2          4
#>