powered by
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.
gsi.isSingleRow(X)
the matrix or vector to be checked
a logical value
It is defined as gsi.isSingleRow <- function(X) { return( NROW(X) == 1 || NCOL(X) ==1 ) }
gsi.isSingleRow <- function(X) { return( NROW(X) == 1 || NCOL(X) ==1 ) }
gsi
# NOT RUN { #gsi.isSingleRow(1:10) # }
Run the code above in your browser using DataLab