Description
slim
slims data frames with GeneMapper data.Usage
slim(data, fix = NULL, stack = NULL, keepAllFixed = TRUE)
Arguments
fix
vector of strings with colum names to keep
fixed.
stack
vector of strings with colum names to slim.
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