Question: Generate an R program, hw2.R that uses the pima data set from the faraway library to generate at least 1 one-way table, 1 two-way table,
Generate an R program, hw2.R that uses the pima data set from the faraway library to generate at least 1 one-way table, 1 two-way table, and 1 subset operation. Generate a one-way table and a two-way table on the subset you generated. Place simple line comments before each table generation (using the # character) to indicate the table you generate so the output is clear to the Grader. Submit the R program and the text output.HINT: use this version of the subset command to restrict the data set to women who tested negative for diabetes.HW02sub=subset(pima,test==0)head(HW02sub)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
