Learn R Programming

strvalidator (version 0.1)

slim: Slim data frames

Description

slim slims data frames with GeneMapper data.

Usage

slim(data, fix = NULL, stack = NULL, keepAllFixed = TRUE)

Arguments

data
data frame.
fix
vector of strings with colum names to keep fixed.
stack
vector of strings with colum names to slim.
keepAllFixed
logical, .

Value

  • list with simulation results.

Details

slim repeated columns into single columns, also see unslim(). For example, the following data frame: Sample.Name|Marker|Allele.1|Allele.2|Size.1|Size.2|Data.Point.. using this command: slim(data, fix=c("Sample.Name","Marker"), stack=c("Allele","Size")) would result in this data frame (NB! 'Data.Point' is lost): Sample.Name|Marker|Allele|Size