Slim data frames with repeated columns.
slim(data, fix = NULL, stack = NULL, keep.na = TRUE, debug = FALSE)
data.frame
data.frame.
vector of strings with column names to keep fixed.
vector of strings with column names to slim.
logical, keep a row even if no data.
logical indicating printing debug information.
Stack repeated columns into single columns. 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 dropped): Sample.Name|Marker|Allele|Size