Get column name with sampleID
getColumnWithSampleID.Rd
Returns the column name in the metadata data frame that corresponds to the given sampleID.
Examples
list_var <- init_variable()
#> Variable name should not contain digits, spaces, or special characters.
#> If any of these are present, they will be removed from the variable name.
mock_data <- mock_rnaseq(list_var, n_genes = 3, 2,2)
#> Building mu_ij matrix
#> k_ij ~ Nbinom(mu_ij, dispersion)
#> Counts simulation: Done
dtf_countLong <- countMatrix_2longDtf(mock_data$counts)
getColumnWithSampleID(dtf_countLong, mock_data$metadata)
#> [1] "sampleID"