Highlights
Task:
Instructions
This lab uses the exploratory tools for one variable and for relationships, which you learned in modules one and two. The lab is based on daily weather observations from the Olympia Airport.
Be sure to change the name of the author on line 3 above. You must submit your completed work as a knitted docx file.
## Data
Upload the R workspace OAP.rdata from Canvas. It contains a single dataframe, OAP. The first line of code in the following chunk will load it into your global environment. The remainder of the code modifies the input file so that it is more suitable for the exercises that follow. You don't need to modify or explain this code. I want you to see it so that you'll know what typical statistical work is really like.
```{r}
load("/cloud/project/OAP.rdata")
library(tidyverse)
library(gmodels)
OAP = OAP %>%
filter(yr < 2020) %>%
select(PRCP,TMAX,TMIN,yr,mo,dy) %>%
mutate(warmth = ifelse(TMAX > mean(TMAX), "Warm","Cold"),
warmth = factor(warmth),
wetness = case_when(PRCP == 0 ~ "Dry",
PRCP < mean(PRCP) ~ "Damp",
TRUE ~ "Really Wet"),
wetness = factor(wetness,levels = c("Dry","Damp","Really Wet")))
```
## Problem 1
Run the commands str() and summary() on the dataframe OAP in the chunk below. Then answer the follwing questions.
```{r}
# Place your code here.
```
Insert your answers following each question.
1. How many observations and variables are in this dataframe?
2. List the categorical variables.
3. List the quantitative variables.
## Problem 2
Run the appropriate numerical and graphical commands on OAP$wetness.
```{r}
# Place your code here.
```
Make two correct statements about this variable.
## Problem 3
Run appropriate numerical and graphical commands on the variable OAP$TMAX.
```{r}
#Place your code here
```
1. What values would you cite as being typical of this variable?
2. What values would you select as being descriptors of the variability of this variable?
3. Looking at the distribution of the variable and referring back to the guidance in the CMU material, which of the answers to questions 1 and 2 are most appropriate? Justify your decisions.
## Problem 4
Run appropriate numerical and graphical commands on the variable OAP$wetness.
```{r}
# Place your code here.
```
Answer the following questions in the space provided.
1. What kind of variable is this?
2. Make two true statements about the distribution of its values.
## Problem 5
This question concerns the relationship between the variables mo and TMAX from the dataframe OAP.
1. What kinds of variables are these? Be sure to use the examples from the notes in Module 2 for guidance.
Now run appropriate numerical and graphical commands to explore the relationship.
```{r}
# Place your code here.
```
2. Which month is the hottest? Why did you pick this one over its nearest competitor?
3. Which month is coldest? Why did you pick this one over its nearest competitor?
4. Which month has the greatest variability in TMAX. Consider both IQR() and sd() and use tapply().
## Problem 6
This question concerns the relationship between the variables mo and wetness from the dataframe OAP.
1. What kinds of variables are these?
2. Run appropriate numerical and graphical commands to explore this relationship.
```{r}
# Place your code here.
```
3. Which month has the largest fraction of really wet days?
4. Which month has the largest fraction of dry days?
5. When do you think the first faint signs of Spring begin?
5. Explain the silly ditty "April showers bring May flowers" using the results.
## Problem 7
This question concerns the relationship between the variables yr and TMAX from the dataframe OAP.
1. What kinds of variables are these?
2. Run appropriate numerical and graphical commands to explore this relationship.
```{r}
# Place your code here.
```
3. Is the graphical output readable?
4. What does the numerical result tell you?
## Problem 8
This question concerns the relationship between the variables TMAX and TMIN from the dataframe OAP.
1. What kinds of variables are these?
2. Run appropriate numerical and graphical commands to explore this relationship.
```{r}
# Place your code here.
```
3. Is the graphical output readable?
4. What does the numerical result tell you?
This IT Assignment has been solved by our IT Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.