Exploring Data Frames and Tables in R

 

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.



Comments

Popular posts from this blog

Descriptive Statistics: Comparing Two Data Sets in R

The Art of Programming Assignment

Understanding Regression Models: Predicting, Analyzing, and Interpreting Data in R