tutorial-id |
none |
introduction |
information-name |
question |
Ivy Spratt |
information-email |
question |
ivyspratt@gmail.com |
what-you-will-learn-2 |
exercise |
library() |
what-you-will-learn-3 |
exercise |
?sqrt |
what-you-will-learn-4 |
exercise |
?diamonds |
looking-at-data-4-b |
question |
A dataset containing the prices and other attributes of almost 54,000 diamonds. The variables are as follows: |
what-you-will-learn-5 |
exercise |
x<-sqrt(144) |
what-you-will-learn-6 |
exercise |
diamonds |
what-you-will-learn-7 |
exercise |
print(diamonds) |
what-you-will-learn-8 |
exercise |
print(diamonds,n=3) |
what-you-will-learn-9 |
exercise |
glimpse(diamonds) |
what-you-will-learn-10 |
exercise |
summary(diamonds) |
what-you-will-learn-11 |
exercise |
sqrt(144) #i love nora |
how-this-book-is-organized-1 |
exercise |
glimpse(mpg) |
how-this-book-is-organized-2 |
exercise |
ggplot(data=mpg) |
how-this-book-is-organized-3 |
exercise |
ggplot(data=mpg)
mapping=aes() |
how-this-book-is-organized-4 |
exercise |
ggplot(data=mpg)
mapping=aes(x=displ,y=hwy) |
how-this-book-is-organized-5 |
exercise |
ggplot(data=mpg, mapping=aes(x=displ,y=hwy))+geom_point() |
how-this-book-is-organized-6 |
exercise |
ggplot(data=mpg, mapping=aes(x=displ,y=hwy))+geom_point(alpha=0.5) |
how-this-book-is-organized-7 |
exercise |
ggplot(data=mpg, mapping=aes(x=displ,y=hwy))+geom_point(alpha=0.5,color="steelblue") |
how-this-book-is-organized-8 |
exercise |
ggplot(data=mpg, mapping=aes(x=displ,y=hwy))+geom_point(alpha=0.5,color="steelblue")+labs(title="Measurements for Engine Displacement and Highway Fuel Efficiency of Select Car Models", subtitle="Cars with greater enginer displacement are less fuel efficient",x="Engine Displacement (L)", y="Highway Efficiency (mpg)", caption="EPA (2008)") |
running-r-code-1 |
exercise |
gss_cat |
running-r-code-2 |
question |
A sample of categorical variables from the General Social survey |
running-r-code-3 |
exercise |
gss_cat|>print() |
running-r-code-4 |
exercise |
gss_cat|>filter(age > 88) |
running-r-code-5 |
exercise |
gss_cat|>filter(age > 88)|>select(age, marital, race, relig, tvhours) |
running-r-code-6 |
exercise |
gss_cat|>filter(age > 88)|>select(age, marital, race, relig, tvhours)|>arrange(desc(tvhours)) |
download-answers |
question |
25 |