# Example input data frame with technical replicates
data1 <- read.csv(system.file("extdata", "data_withTechRep.csv", package = "rtpcr"))
# Calculate mean of technical replicates using first four columns as groups
meanTech(data1, groups = 1:4)
# Another example using different dataset and grouping columns
data2 <- read.csv(system.file("extdata", "Lee_etal2020qPCR.csv", package = "rtpcr"))
meanTech(data2, groups = 1:3)
Run the code above in your browser using DataLab