response_matrix_as_tibble: Takes matrix of responses and converts into tibble

View source: R/tidyMS_R6_TransitionCorrelations.R

response_matrix_as_tibbleR Documentation

Takes matrix of responses and converts into tibble

Description

Takes matrix of responses and converts into tibble

Usage

response_matrix_as_tibble(pdata, value, config, data = NULL, sep = "~lfq~")

Arguments

pdata

(matrix)

value

name of column to store values in. (see 'gather')

config

AnalysisConfiguration

data

lfqdata

sep

separater to unite the hierarchy keys.

Examples

dd <- prolfqua::sim_lfq_data_peptide_config()
data <- dd$data
conf <- dd$config
res <- tidy_to_wide_config(data, conf, as.matrix = TRUE)

res <- scale(res$data)
xx <- response_matrix_as_tibble(res,"srm_intensityScaled", conf)
xx <- response_matrix_as_tibble(res,"srm_intensityScaled", conf, data)
conf$table$get_response() == "srm_intensityScaled"


wolski/prolfqua documentation built on Oct. 31, 2024, 9:22 a.m.