Learn R Programming

phylotools (version 0.1.2)

dimension: Get the dimension of the matrix defined by "XnYm" labels

Description

This is an internal function for handling "XnYm" labels, users do not need to call this function directly.

Usage

dimension(x, unique = FALSE, sort = FALSE)

Arguments

x
A vector contain the "XnYm" labels
unique
Logical, remove the duplicated value
sort
Logical, whether to sort the value in the result

Value

A list with the rows or columns

See Also

imagevect

Examples

Run this code

dimension(c("X1Y4","X33Y56"))

Run the code above in your browser using DataLab