slim | R Documentation |
Slim data frames with repeated columns.
slim(data, fix = NULL, stack = NULL, keep.na = TRUE, debug = FALSE)
data |
data.frame. |
fix |
vector of strings with column names to keep fixed. |
stack |
vector of strings with column names to slim. |
keep.na |
logical, keep a row even if no data. |
debug |
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
data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.