Lab 1A
Directions: Follow along with the slides, completing
the questions in blue on your
computer, and answering the questions in red in your
journal.
Space, Click, Right Arrow or swipe left to move to
the next slide.
R
programming
language.
R
.View(cdc)
:
cdc
data, type the command below into your
console.
View
your
data. Then answer the following:
R
to use.R
knows we have our cdc
data
loaded.cdc
dataset?R
is one of many coding languages. Each coding language
is slightly different, and these differences are reflected in the
syntax.R
understand?R
with
the following:
R
function, often the plot’s name, that
tells the computer how to create your graph.Search through the different panes. Find and then click on the Plots tab.
Which one of these plots would be useful for answering the question: Is it unusual for students in the CDC dataset to be taller than 1.8 meters?
Run the three commands below then answer the question that follows.
Do you think it’s unusual for students in the data to be taller than 1.8 meters? Why or why not?
Hint: Use the arrow keys on the Plots tab to toggle between the plots.
histogram
. What is the typical
weight?bargraph
to visualize the distribution of how often
students ate fruit. About how many students did not
eat fruit over the previous 7 days?