Publications by Kris Sutton

KS Wk2 Air Quality

07.06.2021

library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ── ## ✓ ggplot2 3.3.3 ✓ purrr 0.3.4 ## ✓ tibble 3.1.2 ✓ dplyr 1.0.6 ## ✓ tidyr 1.1.3 ✓ stringr 1.4.0 ## ✓ readr 1.4.0 ✓ f...

38 sym R (3888 sym/27 pcs) 5 img

Class Practice

01.06.2021

This is my first markdown file Create my first chunk # create my first chunk minutes <-c(60, 150, 45, 35, 90, 60, 90, 70, 80, 95) mean(minutes) ## [1] 77.5 create a boxplot create a chunk shortcut: command Alt i boxplot(minutes) ...

124 sym R (117 sym/3 pcs) 1 img

Data 101 Assignment 1 - Flights

21.07.2021

Introduction In this workshop we will do some of the exercises from Chapter 5 of R4DS. Exercises from 5.2.4 Use a separate code block for each exercise. for example: 1. Find all flights that had an arrival delay of two or more hours. flights %>% filter(arr_delay >= 120) # note delays are in minutes ## # A tibble: 10,200 x 19 ## year month ...

1860 sym R (1306 sym/2 pcs)

KS Data 110 Project 2 Chicago Sex Offenders

10.07.2021

For this project I will explore the dataset “Sex Offenders: City of Chicago” provided by the city of Chicago state government. The dataset has 10 variables: LAST: chr - last name of offender FIRST: chr - first name of offender BLOCK: chr - block offender lives on GENDER: chr - gender of offender RACE: chr - race of offender BIRTH.DATE: chr - ...

6444 sym R (12432 sym/66 pcs) 9 img

KS - Data 110 Unit 5 Creating Maps

03.07.2021

Using the tutorial from “Creating Maps in R”, I will complete steps 1 – 10 to create a static map and a interactive map. Machlis, S. (2017, October 31). Create maps in R in 10 (fairly) easy steps. Computerworld. https://www.computerworld.com/article/3038270/create-maps-in-r-in-10-fairly-easy-steps.html?jwsource=cl. Load the libraries. ##lib...

2081 sym R (35682 sym/93 pcs) 7 img

KS Unit 4 Nations Homework

27.06.2021

Data 110 “nations” homework assignment using the “nations” dataset. setwd("C:/Users/kris.sutton/OneDrive - Government of The District of Columbia/Desktop/Personal/Data 110/R Studio/Datasets") Warning: The working directory was changed to C:/Users/kris.sutton/OneDrive - Government of The District of Columbia/Desktop/Personal/Data 110/R St...

4545 sym R (2127 sym/13 pcs) 2 img

Kris Sutton Data 110 'dslabs' Homework

26.06.2021

Data 110 “dslabs” homework assignment using the “movielens” dataset. Variable details: movieId: Unique ID for the movie. title: Movie title (not unique). year: Year the movie was released. genres: Genres associated with the movie. userId: Unique ID for the user. rating: A rating between 0 and 5 for the movie. timestamp: Date and time the ...

1390 sym R (3341 sym/33 pcs) 2 img

Kris Sutton Data 110 Project 1

21.06.2021

##-----------SECTION ONE: LOAD DATA & LIBRARIES ## set working director and read borders data set setwd("C:/Users/kris.sutton/OneDrive - Government of The District of Columbia/Desktop/Personal/Data 110/R Studio/Datasets") borders <- read.csv("border_crossing.csv") library(lubridate) ## Warning: package 'lubridate' was built under R version ...

1660 sym R (12355 sym/44 pcs) 1 img

NYCFlights13 Homework

18.06.2021

install.packages("nycflights13") WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding: https://cran.rstudio.com/bin/windows/Rtools/ trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/nycflights13_1.0.2.zip' Content type 'applic...

4722 sym R (3577 sym/24 pcs) 2 img

Hate Crime Tutorial KS

15.06.2021

library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ── ## ✓ ggplot2 3.3.3 ✓ purrr 0.3.4 ## ✓ tibble 3.1.2 ✓ dplyr 1.0.6 ## ✓ tidyr 1.1.3 ✓ stringr 1.4.0 ## ✓ readr 1.4.0 ✓ f...

50 sym R (16919 sym/41 pcs) 4 img