Publications by Ryan Masingill
My First Publication
Q1 What is R? R is a programming language to organize and analyize data Q2 What is RStudio? RStudio is the program that you write the code Q3 What is R packages? R packages are external data sets that you can import into RStudio Hint: Type your answer in bold. Note: For help with RMarkdown syntax, go Help > Cheatsheets > R Markdown Reference Gu...
362 sym
My First RMarkdown with Code
Use the given code below to answer the questions. Q1 Get Amazon stock prices, instead of Apple. Hint: Insert a new code chunk below and type in the code, using the tq_get() function above. Replace the ticker symbol for Microsoft. You may find the ticker symbol for Microsoft from Yahoo Finance. ## Load package library(tidyverse) # for cleaning, p...
1480 sym R (1021 sym/3 pcs) 1 img
Mock Quiz 1
Use the given code below to answer the questions. Q1 Get Walmart stock prices, instead of Apple. Hint: Insert a new code chunk below and type in the code, using the tq_get() function above. Replace the ticker symbol for Walmart. You may find the ticker symbol for Microsoft from Yahoo Finance. ## # A tibble: 1,025 x 7 ## date open high...
1780 sym R (760 sym/1 pcs) 1 img
Bivariate Graphs
In this exercise you will learn to plot data using the ggplot2 package. To answer the questions below, use Chapter 4.3 Categorical vs. Quantitative Data Visualization with R. # Load packages library(tidyquant) library(tidyverse) # Import stock prices stock_prices <- tq_get(c("AAPL", "MSFT"), get = "stock.prices", from = "2020-01-01") Q1 Selec...
1134 sym R (975 sym/8 pcs) 6 img
Quiz 3
For this quiz, you are going to use orange juice data. This data set is originally used in a machine learning (ML) class, with the goal to predict which of the two brands of orange juices the customers bought. Of course, you are not building a ML algorithm in this quiz. I just wanted to provide you with the context of the data. The response varia...
2561 sym R (5722 sym/10 pcs) 2 img
Quiz 1
# Load packages library(tidyquant) library(tidyverse) # for count() function # Import S&P500 Stock Index SP500 <- tq_index("SP500") SP500 ## # A tibble: 505 x 8 ## symbol company identifier sedol weight sector shares_held local_currency ## <chr> <chr> <chr> <chr> <dbl> <chr> <dbl> <chr> ## 1 AAP...
1072 sym R (1735 sym/4 pcs)
Quiz 2
For this quiz, you are going to use orange juice data. This data set is originally used in a machine learning (ML) class, with the goal to predict which of the two brands of orange juices the customers bought. Of course, you are not building a ML algorithm in this quiz. I just wanted to provide you with the context of the data. The response varia...
2349 sym R (6290 sym/14 pcs) 2 img
Quiz 4
For this quiz, you are going to use orange juice data. This data set is originally used in a machine learning (ML) class, with the goal to predict which of the two brands of orange juices the customers bought. Of course, you are not building a ML algorithm in this quiz. I just wanted to provide you with the context of the data. The response varia...
3476 sym R (6249 sym/17 pcs) 1 img
Term Paper
itle: “Tidytuesday Screencast” ubtitle: "Tidy Tuesday Screencast: Analyzing Thanksgiving dinners in R uthor: “Ryan Masingill” utput: html_document: toc: true Choose one of David Robinson’s tidytuesday screencasts, watch the video, and summarise. https://www.youtube.com/channel/UCeiiqmVK07qhY-wvg3IZiZQ Instructions You must follow...
3704 sym
Quiz 6
For this quiz, you are going to use mpg (miles per galon) dataset. This dataset contains a subset of the fuel economy data that the EPA makes available on http: //fueleconomy.gov. It contains only models which had a new release every year between 1999 and 2008 - this was used as a proxy for the popularity of the car. The dataset has the following...
2156 sym R (4115 sym/26 pcs)