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.
Examples
# 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)