Publications by Kayleah Griffen
Introduction to Data in R
Some define statistics as the field that focuses on turning information into knowledge. The first step in that process is to summarize and describe the raw information – the data. In this lab we explore flights, specifically a random sample of domestic flights that departed from the three major New York City airports in 2013. We will generat...
12162 sym R (5193 sym/33 pcs) 8 img
Window Functions in R
Introduction The objective of this extra credit assignment was to find a dataset that includes a time series for two or more separate items. Then use window functions to calculate the year-to-date average and the six-day moving averages for each item. The dataset I chose is Surface underway measurements of partial pressure of carbon dioxide (pC...
4060 sym R (6223 sym/36 pcs) 2 img
Text processing in R
Introduction In this project, a text file with chess tournament results was provided. The objective was to create an R Markdown file that generates a .CSV file with the following information for all of the players: Player’s Name, Player’s State, Total Number of Points, Player’s Pre-Rating, and Average Pre Chess Rating of Opponents For exam...
3040 sym R (5423 sym/21 pcs)
Regexs in R
library(readr) library(tidyverse) library(RCurl) Question 1 Using the 173 majors listed in fivethirtyeight.com’s College Majors dataset [https://fivethirtyeight.com/features/the-economic-guide-to-picking-a-college-major/], provide code that identifies the majors that contain either “DATA” or “STATISTICS”. x <- getURL("https://raw.gi...
2962 sym R (2725 sym/25 pcs)
Loading Data into a Data Frame
Introduction FiveThirtyEight published “Higher Rates Of Hate Crimes Are Tied To Income Inequality” which uses data on hate crimes, provided by the FBI and the Southern Poverty Law Center (SPLC), as well as socioeconomic factors, aggregated from multiple sources, to determine what socioeconomic factor or factors are linked to hate crimes....
3964 sym 2 img
Introduction to R and R Studio
The RStudio Interface The goal of this lab is to introduce you to R and RStudio, which you’ll be using throughout the course both to learn the statistical concepts discussed in the course and to analyze real data and come to informed conclusions. To clarify which is which: R is the name of the programming language itself and RStudio is a co...
18465 sym 5 img
Kayleah_Griffen_Bridge_R_HW_1
Challenge 1 Write a loop that calculates 12-factorial x <- 12 f <- 1 for (i in 1:x){ f <- f*i } sprintf("My factorial: %d , Built in factorial: %d", f,factorial(x)) ## [1] "My factorial: 479001600 , Built in factorial: 479001600" Challenge 2 Show how to create a numeric vector that contains the sequence from 20 to 50 by 5. numeric_vector ...
346 sym