SpreadCalculation {QuICSeedR} | R Documentation |
Spread Calculation Data
Description
This function takes a data frame containing metadata and calculation results, and spreads the results into a list of data frames for selected calculation term.
Usage
SpreadCalculation(
calculation,
id_col = "content",
rep_col = "replicate",
terms = c("RAF", "MPR", "MS")
)
Arguments
calculation |
A data frame containing the metadata and results of the calculation. Output from |
id_col |
The name of the column in calculation that identifies the content. Default is 'content'. |
rep_col |
The name of the column in calculation that identifies the replicate. Default is 'replicate'. |
terms |
A vector of column names to spread. Defaults to 'RAF', 'MPR', and 'MS'. |
Value
A list of data frames containing the spread results of the calculation. Each data frame is compatible with various graphing software, particularly GraphPad Prism, which is the most commonly used graphing tool in F-SAA research.
Examples
calculation <- data.frame(
content = rep(c("A", "B", "C"), each = 2),
replicate = rep(1:2, 3),
time_to_threshold = rnorm(6),
RAF = rnorm(6),
MPR = rnorm(6),
MS = rnorm(6)
)
calculation_spread = SpreadCalculation(calculation)
print(calculation_spread)
[Package QuICSeedR version 0.1.2 Index]