unique()
Error in unique.default(): argument "x" is missing, with no default
This example is taken from an experiment listed in the R help files under ?CO2
.
“An experiment on the cold tolerance of the grass species Echinochloa crus-galli was conducted. The CO2 uptake of six plants from Quebec and six plants from Mississippi was measured at several levels of ambient CO2 concentration. Half the plants of each type were chilled overnight before the experiment was conducted.” Plants were considered tolerant to the cold if they were still able to achieve high CO2 uptake values after being chilled.
NOTE: Recall that the formula for separating a response variable by a category is to use the formula (data$y ~ data$x)
which works for favstats()
and boxplot()
QUESTION: What is the response variable?
ANSWER:
QUESTION: What are the levels of Type
?
Create a table of summary statistics of uptake
for each Type
:
QUESTION: What is the mean uptake for the Quebec type?
ANSWER:
QUESTION: What is the median of the Mississippi type?
ANSWER:
QUESTION: Which type has the highest standard deviation?
ANsWER:
Create a side-by-side boxplot of uptake comparingType
:
Create a table of summary statistics of uptake for each Treatment
used in the experiment.
QUESTION: What is the mean uptake for the non-chilled treatment?
ANSWER:
QUESTION: What is the mean of the chilled treatment?
ANSWER:
Create a side-by-side boxplot of uptake for each Treatment
used in the experiment.
QUESTION: Based on the above summaries, which combination of variables would you suggest to maximize CO2 uptake?
ANSWER: