Question: car.type

car.type <- factor(c("saloon","saloon","hatchback", "saloon","convertible","hatchback","convertible", "saloon","hatchback","saloon","saloon", "saloon","hatchback"), levels=c("saloon","hatchback","convertible"))

Use the same function as you used in questions 1, this time added (car.type, colors) inside that function. Your code should look like this:

crosstab <- FUNCTION(car.type, colors)

Type crosstab in R to see the result. From the results, what are the number of red hatchback in the inventory?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!