

   TThhee NNuummbbeerr ooff RRoowwss//CCoolluummnnss ooff aann AArrrraayy

        nrow(x)
        ncol(x)
        NCOL(x)
        NROW(x)

   AArrgguummeennttss::

          x: a vector, array or data frame

   DDeessccrriippttiioonn::

        `nrow' and `ncol' return the number of rows or columns
        present in `x'.  `NCOL' and `NROW' do the same, but
        treat a vector as 1-column matrix.

   SSeeee AAllssoo::

        `dim' which returns all dimensions; `array', `matrix'.

   EExxaammpplleess::

        ma <- matrix(1:12, 3, 4)
        nrow(ma)   # 3
        ncol(ma)   # 4

        ncol(array(1:24, dim = 2:4)) # 3, the second dimension
        NCOL(1:12) # 1
        NROW(1:12) # 12

