Publications by Joey Campbell

annotations75_demo

19.03.2020

suppressPackageStartupMessages(library("tidyverse")) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("modelr")) package 㤼㸱modelr㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("lubridate")) 1. Use geom_text() with infinite positions to place text at the four c...

6811 sym R (1760 sym/10 pcs) 5 img

code_chunks73_demo

19.03.2020

4. Set up a network of chunks where d depends on c and b, and both b and c depend on a. Have each chunk print lubridate::now(), set cache = TRUE, then verify your understanding of caching. --- title: "Exercise 24.4.7.4" author: "Joey Campbell" date: "03/19/2019" output: html_document --- `{r setup, include=FALSE} knitr::opts_chunk$set(ech...

1805 sym R (584 sym/1 pcs)

rmd_basics71_demo

18.03.2020

Create a new notebook using File > New File > R Notebook. Read the instructions. Practice running the chunks. Verify that you can modify the code, re-run it, and see modified output. 2. Create a new R Markdown document with File > New File > R Markdown …. Knit it by clicking the appropriate button. Knit it by using the appropriate keyboard sho...

669554 sym R (695 sym/7 pcs) 3 img

txt_fmt72_demo

18.03.2020

Exercise 27.3.1 Practice what you’ve learned by creating a brief CV. The title should be your name, and you should include headings for (at least) education or employment. Each of the sections should include a bulleted list of jobs/degrees. Highlight the year in bold. A minimal example is the following CV. --- title: "Joseph Campbell" --- #...

4708 sym R (1199 sym/2 pcs)

gapminder68_demo

18.03.2020

suppressPackageStartupMessages(library("modelr")) package 㤼㸱modelr㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("tidyverse")) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("gapminder")) package 㤼㸱gapminder㤼㸲 was built under R version 3.6.3 1. A lin...

4254 sym R (1780 sym/14 pcs) 4 img

diamonds67_demo

17.03.2020

suppressPackageStartupMessages(library("tidyverse")) suppressPackageStartupMessages(library("modelr")) suppressPackageStartupMessages(library("lubridate")) suppressPackageStartupMessages(library("broom")) suppressPackageStartupMessages(library("nycflights13")) The splines package is needed for the ns() function used in one of the solutions. s...

14638 sym R (1830 sym/17 pcs) 2 img

vizmod65_demo

16.03.2020

suppressPackageStartupMessages(library("tidyverse")) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("modelr")) package 㤼㸱modelr㤼㸲 was built under R version 3.6.3 1. Instead of using lm() to fit a straight line, you can use loess() to fit a smooth curve. Repeat the process of model fit...

9274 sym R (1424 sym/14 pcs) 4 img

simplemod54_demo

16.03.2020

suppressPackageStartupMessages(library("tidyverse")) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("modelr")) package 㤼㸱modelr㤼㸲 was built under R version 3.6.3 The option na.action determines how missing values are handled. It is a function. na.warn sets it so that there is a warning...

9119 sym R (2276 sym/28 pcs) 4 img

otherpatterns_forloops63_demo

16.03.2020

suppressPackageStartupMessages(library("tidyverse")) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 1. Implement your own version of every() using a for loop. Compare it with purrr::every(). What does purrr’s version do that your version doesn’t? # Use ... to pass arguments to the function every2 <- function(.x, .p, ...) { ...

4635 sym R (1219 sym/22 pcs)

map_functions62_demo

16.03.2020

suppressPackageStartupMessages(library("tidyverse")) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("stringr")) #The package microbenchmark is used for timing code. suppressPackageStartupMessages(library("microbenchmark")) package 㤼㸱microbenchmark㤼㸲 was built under R version 3.6.3 1...

12828 sym R (5548 sym/43 pcs)