Answer Posted / Amit Kumar Srivastava
In R, there are several primary data structures: vectors, lists, arrays, matrices, and data frames. Vectors are one-dimensional arrays of any type (numeric, character, logical). Lists can contain elements of any type and are ordered, while arrays have a fixed length and all elements must be of the same type. Matrices are two-dimensional arrays with equal number of rows and columns (numeric by default), and data frames combine a matrix with a list of factors to store both numerical and factor variables.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers