STAT 220
plot() function behaves differently based on the input objectplot() Function ExamplesDiagnostic plots with plot():
The plot() function adapts its behavior based on the input object’s class and type
typeof(): Returns the storage mode (data type) of an objectclass(): Provides further description of an object
R uses two types of vectors to store info
Atomic vector (numeric):
You can add attributes, such as dimension, to vectors. A matrix is a 2-dimensional vector containing entries of the same type
Creating a matrix with dimensions:
Bind vectors of the same length to create columns or rows. Use cbind() for column binding and rbind() for row binding
Sum of Logical Values
Factors are a class of data that are stored as integers
The attribute levels is a character vector of possible values
level, 2=second level, etc.)[] operator gives you the object at the given location but preserves the list typemy_list[2] returns a list of length one with entry myDf
20:00