rm_leading_0 | R Documentation |
useful function to remove leading 0s from well IDS. This can be usefull when trying to map data from sample.IDs with leading 0s to other data without leading 0s. Created it as a function so I don't have to look up the regular expression every time I use it.
rm_leading_0(Wells)
Wells: |
vector of well IDs |
vector of well IDs modified to remove the leading 0.
Wells = c("A01","A02", "B04") rm_leading_0(Wells) ##Output### "A1","A2","B4"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.