Learn R Programming

ribiosUtils (version 1.7.7)

equateWellLabelWidth: Format labels for wells in microwell plates to equal widths

Description

Format labels for wells in microwell plates to equal widths

Usage

equateWellLabelWidth(wells)

Value

A vector of the same length, with all labels adjusted to the equal width, with left-padding zeros added whenever it makes sense. If the input labels are already of the same length, no change is applied.

Arguments

wells

A vector of character strings indicating well positions, they may be of different widths, for instance A1, A10, A12

Examples

Run this code
equateWellLabelWidth(c("A1", "C10", "D12"))

Run the code above in your browser using DataLab