TITLE(nrow, ncol @@ The Number of Rows / Columns of an Array)
USAGE(
nrow(x)
ncol(x)
NCOL(x)
NROW(x)
)
ALIAS(nrow)
ALIAS(NROW)
ALIAS(ncol)
ALIAS(NCOL)
ARGUMENTS(
ARG(x @@ array or data.frame)
)
DESCRIPTION(
LANG(nrow) and LANG(ncol) return the number of rows or columns present in LANG(x).
LANG(NCOL) and LANG(NROW) do the same, but treat a vector as 1-column matrix.
)
SEEALSO(
LANG(LINK(dim)) which returns ITALIC(all) dimensions;
LANG(LINK(array)), LANG(LINK(matrix)).
)
EXAMPLES(
ma <- matrix(1:12, 3, 4)
nrow(ma) # 3
ncol(ma) # 4
BLANK
ncol(array(1:24, dim= 2:4)) # 3, the second dimension
NCOL(1:12) # 1
NROW(1:12) # 12
)
KEYWORD(array)
