Question: This question is based on Rstudio. Please write the line of codes You have a data frame in you R space titled cats. This dataset
You have a data frame in you R space titled cats. This dataset records the number of cats spotted around campus. These are your columns: Library, CAB, SFC, Cafeteria and Gym. Write a line of code to do the following a. Get all rows where the number of cats at the library are greater than 5. b. Extract the first 5 rows c. Extract the first 2 columns d. Extract all rows where number of cats at CAB 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
