In R, an array is created using the ______ function.

  • array()
  • list()
  • data.frame()
  • matrix()
In R, an array is created using the array() function. The array() function allows you to specify the values of the array, the dimensions, and other parameters such as dimension names. You can pass a vector of values and specify the dimensions to create the desired array structure.
Add your answer
Loading...

Leave a comment

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