View source: R/support_decoupleR.R
wide_ulm_res | R Documentation |
This function converts the results from a ULM analysis to a wide format data frame. The input is a data frame with columns for source, condition, and score. The output is a data frame where each row represents a source and each column represents a condition, with the corresponding scores as values.
wide_ulm_res(ulm_result)
ulm_result |
A data frame representing the ULM results with columns: source, condition, and score. |
A data frame in wide format where each row is a source and each column is a condition.
# Create a sample ULM result
ulm_result <- data.frame(source = c("A", "A", "B", "B"),
condition = c("cond1", "cond2", "cond1", "cond2"),
score = c(0.5, 0.8, 0.3, 0.7))
# Convert to wide format
wide_ulm_result <- wide_ulm_res(ulm_result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.