Publications by Joey Campbell
groupmutate14_demo
suppressPackageStartupMessages(library(nycflights13)) package 㤼㸱nycflights13㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library(tidyverse)) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 1.Refer back to the lists of useful mutate and filtering functions. Describe how each operation changes when you co...
41835 sym R (7018 sym/43 pcs) 5 img
workflow_scripts15_demo
1. Go to the RStudio Tips twitter account, https://twitter.com/rstudiotips and find one tip that looks interesting. Practice using it! The current timeline of [@rstudiotips](https://twitter.com/rstudiotips) is displayed below. Tweets by rstudiotips 2.What other common mistakes will RStudio diagnostics report? Read https://support.rstudio.com/hc/...
2126 sym
groupsum13_demo
suppressPackageStartupMessages(library(nycflights13)) package 㤼㸱nycflights13㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library(tidyverse)) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 1. Brainstorm at least 5 different ways to assess the typical delay characteristics of a group of flights. Consider...
19015 sym R (2683 sym/21 pcs) 3 img
newvar_mutate12_demo
suppressPackageStartupMessages(library(nycflights13)) package 㤼㸱nycflights13㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library(tidyverse)) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 1. Currently dep_time and sched_dep_time are convenient to look at, but hard to compute with because they’re not ...
28454 sym R (4628 sym/57 pcs) 3 img
select11_demo
suppressPackageStartupMessages(library(nycflights13)) package 㤼㸱nycflights13㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library(tidyverse)) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 1. Brainstorm as many ways as possible to select dep_time, dep_delay, arr_time, and arr_delay from flights. These a...
11720 sym R (1066 sym/20 pcs)
arrange10_demo
suppressPackageStartupMessages(library(nycflights13)) package 㤼㸱nycflights13㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library(tidyverse)) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 1. How could you use arrange() to sort all missing values to the start? (Hint: use is.na()). The arrange() function...
8211 sym R (734 sym/15 pcs)
workflow_basics08_demo
suppressPackageStartupMessages(library(tidyverse)) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 1. Why does this code not work? #my_variable <- 10 #my_varıable #> Error in eval(expr, envir, enclos): object 'my_varıable' not found The variable being printed is my_varıable, not my_variable: the seventh character is “ı” (...
7618 sym R (710 sym/10 pcs) 1 img
coordsys07_demo
1. Turn a stacked bar chart into a pie chart using coord_polar(). A pie chart is a stacked bar chart with the addition of polar coordinates. Take this stacked bar chart with a single category. suppressPackageStartupMessages(library(tidyverse)) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 ggplot(mpg, aes(x = factor(1), fill = drv)...
7965 sym R (915 sym/9 pcs) 7 img
posadj06_demo
1. What is the problem with this plot? How could you improve it? suppressPackageStartupMessages(library(tidyverse)) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 ggplot(data = mpg, mapping = aes(x = cty, y = hwy)) + geom_point() There is overplotting because there are multiple observations for each combination of cty and hwy v...
11262 sym R (1255 sym/16 pcs) 14 img
Rstat_transform05_demo
1. What is the default geom associated with stat_summary()? How could you rewrite the previous plot to use that geom function instead of the stat function? The “previous plot” referred to in the question is the following. suppressPackageStartupMessages(library(tidyverse)) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 ggplot(da...
17029 sym R (963 sym/10 pcs) 8 img 3 tbl