Publications by Joey Campbell

fact_lvl_mod48_demo

14.03.2020

suppressPackageStartupMessages(library("tidyverse")) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 1. How have the proportions of people identifying as Democrat, Republican, and Independent changed over time? To answer that, we need to combine the multiple levels into Democrat, Republican, and Independent levels(gss_cat$partyid) ...

2904 sym R (1784 sym/8 pcs) 2 img

detectMatch38_demo

14.03.2020

suppressPackageStartupMessages(library("tidyverse")) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 1. For each of the following challenges, try solving it by using both a single regular expression, and a combination of multiple str_detect() calls. Find all words that start or end with x. Find all words that start with a vowel and...

4619 sym R (1490 sym/21 pcs)

for_loop_variation60_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...

8048 sym R (3284 sym/41 pcs)

loopsvfuncs61_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...

5388 sym R (2405 sym/22 pcs)

formulas_model_fam66_demo

17.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. What happens if you repeat the analysis of sim2 using a model without an intercept. What happens to the model equation? ...

13308 sym R (2985 sym/28 pcs) 2 img

flights68_demo

17.03.2020

suppressPackageStartupMessages(library("tidyverse")) suppressPackageStartupMessages(library("modelr")) suppressPackageStartupMessages(library("lubridate")) suppressPackageStartupMessages(library("broom")) suppressPackageStartupMessages(library("nycflights13")) suppressPackageStartupMessages(library("splines")) This code is copied from the bo...

20972 sym R (10642 sym/23 pcs) 12 img

creating_list_columns69_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. List ...

4030 sym R (1869 sym/25 pcs)

simplifying_listcols70_demo

18.03.2020

1. Why might the lengths() function be useful for creating atomic vector columns from list-columns? The lengths() function returns the lengths of each element in a list. It could be useful for testing whether all elements in a list-column are the same length. You could get the maximum length to determine how many atomic vector columns to create. ...

2000 sym

label74_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. Create one plot on the fuel economy data with customized title, sub...

5948 sym R (1693 sym/9 pcs) 4 img

Leaflet

04.04.2020

Introduction Leaflet is one of the most popular open-source JavaScript libraries for interactive maps. It’s used by websites ranging from The New York Times and The Washington Post to GitHub and Flickr, as well as GIS specialists like OpenStreetMap, Mapbox, and CartoDB. The Leaflet R package makes it easy to integrate and control Leaflet maps ...

3574 sym R (3856 sym/14 pcs)