What are the different data structures in r? Briefly explain about them.
Answer Posted / Manindra Nath Singh
"R has several types of data structures, including:nn1. Vector: A collection of elements of the same type (numeric, character, logical).n2. Factor: Categorical variables represented as integers.n3. Matrix: A two-dimensional array with rows and columns of equal length.n4. Data Frame: A collection of vectors or factors, where each vector or factor represents a column and shares the same row indexes.n5. List: A generic data structure that can contain elements of any type.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers