--Basics
The basic data structures in R can be organized by their dimensionality (1D, 2D, …, nD)
#Identifying the Data Structure
#Understanding Attributes
Some examples of R object attributes are:
names, dimnames
dimensions (e.g. matrices, arrays)
class (e.g. integer, numeric)
length
other user-defined attributes/metadata
#Exercises:
Identify the data structure and attributes for the built-in
sleepdata set.Identify the data structure and attributes for the built-in
state.namedata set.Identify the data structure and attributes for the built-in
Harman74.cordata set.Identify the data structure and attributes for the built-in
WorldPhonesdata set.Bonus: Identify the data structure and attributes for the built-in
Niledata set. What kind of data object is this?
Last updated