5 Data Frame Operations
5 Data Frame Operations
Data row
Cell
● or simpler:
Exercise
Using the built in data frame in R called mtcars: Motor Trend Car
Road Tests and logic operations, filter the data frame such that
the remaining data frame are car models that meet the following
conditions:
a) gas mileage is higher than the average of all the car models
in the dataset, AND
b) weighs lighter than the average weight of all the car models
in the dataset.
Data frame operations
At the end of this session, you will be able to perform
the following operations on data frames:
● Definition
● Indexing and reassigning
● Concatenation
● Merging
● Filtering
●