Question: Use the R software and with the mtcars dataset in base R to perform the following:
Fantastic news! We've Found the answer you've been seeking!
Question:
Question: Use the R software and with the mtcars dataset in base R to perform the following:
Extract and display the column corresponding to the number of cylinders. Create a logical vector named `lgl_4cyl`. Elements of `lgl_4cyl` are `TRUE` if the corresponding observation in `mtcars` has 4 cylinders.
Extract and display the observations of cars with 4 cylinders. __Hint:__ Subset with a logical vector.
Extract and display the observations of cars with 4 cylinders AND 4 gears.
Posted Date: