Learn R Programming

strvalidator (version 0.1)

countPeaks: Calculate summary

Description

countPeaks Calculates the number of observed peaks per marker.

Usage

countPeaks(data, col = "Height", unique = TRUE)

Arguments

data
a data frame containing at least columns 'Sample.Name', 'Marker', and col.
col
string specifying the column(s) to count values in.
unique
logical indicating if counting occurences or unique values per marker.

Value

  • data.frame with columns 'Sample.Name', 'Marker', and 'Peaks'.

Details

Takes (GM-formatted) data for samples as input. Counts the number of peaks per marker (values in 'col' columns).