Exploring Data Frames and Tables in R
- Get link
- X
- Other Apps
In this assignment, I made a simple data frame in R with details like country, age, salary, and whether someone made a purchase. Then I used the built-in mtcars dataset to create a table showing how car gears and cylinders relate to each other. I added totals using addmargins() and found both overall and row proportions with prop.table(). Doing this helped me see how R makes it easy to organize, compare, and understand data.
- Get link
- X
- Other Apps
Comments
Post a Comment