View source: R/vsg_split_mdt.R
vsg_split_mdt | R Documentation |
I kept having to do this so I made a function to split my usualy samplename nomenclature into the designated mouse, day, adn tissue columns (mdt).
vsg_split_mdt(df, col_to_split, by = "_", convert = TRUE)
df |
A data frame, usually containing VSGSeq results data. |
col_to_split |
The column to split, usually a samplename column. |
by |
The character to split by. The default is an underscore ("_"). |
convert |
If TRUE, will run type.convert() with as.is = TRUE on new columns. This is useful if the component columns are integer, numeric or logical. |
Returns a date frame with the designate column split into mouse, day, and tissue columns.
vsg_split_mdt("samplename")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.