Learn R Programming

compositions (version 2.0-4)

gsi.isSingleRow: Internal function: Can something be considered as a single multivariate data item?

Description

Checks wether something can be regarded as a single multivariate item, being a matrix or a vector, which is only a row or a column.

Usage

gsi.isSingleRow(X)

Value

a logical value

Arguments

X

the matrix or vector to be checked

Author

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

Details

It is defined as gsi.isSingleRow <- function(X) { return( NROW(X) == 1 || NCOL(X) ==1 ) }

See Also

gsi

Examples

Run this code
#gsi.isSingleRow(1:10)

Run the code above in your browser using DataLab