In R, the ______ function can be used to compute the dimensions of an array.

  • dim()
  • nrow()
  • ncol()
  • length()
In R, the dim() function can be used to compute the dimensions of an array. The dim() function returns a numeric vector specifying the number of rows, columns, and other dimensions of the array. It provides a convenient way to retrieve the dimensions of an array for further processing or analysis.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *