compact: Compact

Description Usage Arguments Details Value

View source: R/compact.r

Description

Add Identical Peaks.

Usage

1
compact(data, per.sample = TRUE, col = "Height", sim = FALSE, debug = FALSE)

Arguments

data

data frame with at least 'Sample.Name', 'Marker', 'Allele', and 'Height' columns.

per.sample

logical TRUE compact per sample, FALSE for entire dataset (in which case 'Sample.Name' is set to 'Profile' and if sim=TRUE 'Sim' is set to '1' and 'PCR.Vol' is set to the mean).

col

character string to specify which column to compact.

sim

logical to specify if simulation columns should be replicated (i.e. 'Sim' and 'PCR.Vol').

debug

logical for printing debug information.

Details

Add peak heights of identical allele designations together.

Value

data.frame with columns 'Sample.Name', 'Marker', 'Allele', and 'Height'.


OskarHansson/pcrsim documentation built on Jan. 22, 2022, 11:55 a.m.