Answer Posted / Sarita Rawat
An array in R is a multidimensional data structure consisting of elements of the same type (numeric, character, or logical). Arrays are defined using square brackets [ and ], with each element accessed by its row and column indices. For example: arr <- array(1:24, dim=c(4, 6)) creates a 4x6 numeric array containing the numbers from 1 to 24. Arrays can be useful for organizing data and performing operations on multiple dimensions.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers