vascr_sample_rename | R Documentation |
Renames samples in a vascr dataset, either replacing the whole sample or parts of the string.
vascr_sample_rename(data.df, change_list, partial = FALSE)
data.df |
Vascr dataset to update |
change_list |
List of vectors containing pairs of search and replacement terms to replace |
partial |
TRUE or FALSE, defines if partial matches should be changed |
An updated vascr data frame
to_rename = growth.df %>% vascr_subset(sample = c("0 cells","20,000 cells", "10,000 cells"))
to_rename$Sample %>% unique()
renamed = vascr_sample_rename(to_rename, change_list = list(c("0_cells", "Cell Free")))
print(renamed$Sample %>% unique())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.