rm_leading_0: rm_leading_0

View source: R/rm_leading_0.R

rm_leading_0R Documentation

rm_leading_0

Description

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.

Usage

rm_leading_0(Wells)

Arguments

Wells:

vector of well IDs

Value

vector of well IDs modified to remove the leading 0.

Examples

Wells = c("A01","A02", "B04")

rm_leading_0(Wells)
##Output###
"A1","A2","B4"

baynec2/biolabr documentation built on Aug. 8, 2022, 12:02 a.m.