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
Get step-by-step solutions from verified subject matter experts
