VertitimeX Technologies

R Arrays.

  • Array in R can store multiple values. It can be created with the use of array() function.
  • Dim parameter being used for specifying the dimensions. A list of elements is passed to the array() functions along with the dimensions as required.
Syntax:
      array(data, dim = (nrow, ncol, nmat), dimnames=names)
      where
            nrow: Number of rows
            ncol : Number of columns
            nmat: Number of matrices of dimensions nrow * ncol
            dimnames : Default value = NULL.