Learn R Programming

phylotools (version 0.1.2)

formatXY: Formating XY label

Description

Add "0" in characters where should be added, inorder to make the character labels sortable.

Usage

formatXY(x)

Arguments

x
A character vector containing the labels in "XnYm" format

Details

This function will add "0" before the number 'n' if it has fewer characters than the number that has more characters in the same position. Only then the elements "XnYm" in the label vector could be sorted.

See Also

imagevect

Examples

Run this code
formatXY(c("X1Y1","X33Y567"))

Run the code above in your browser using DataLab