vsg_expand | R Documentation |
This takes a VSG seq output data frame and expands it to include all possible combinations of sample ~ VSG (col1 ~ col2). Then resets all Percent values to be zero if a VSG was not found in a sample.
vsg_expand(df, col1, col2, merge = TRUE)
df |
A data frame, usually containing VSGSeq results data. |
col1 |
The first column to expand on, this is typically the samplename column. (Needs to be in quotes) |
col2 |
The second column to expand with, this is typically the VSG column with the name of each VSG. |
merge |
A logical argument to merge back with the original data to get percent info in the output. |
Returns a date frame with the VSG data for every possible combination of sample ~ VSG (col1 ~ col2)
vsg_expand(results_df, "samplename", "VSG")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.