Publications by Ethan Hicks

Term Project

08.05.2020

This is an extension of the tidytuesday assignment you have already done. Complete the questions below, using the screencast you chose for the tidytuesday assigment. Import Data devtools::install_github("thebioengineer/tidytuesdayR") ## Skipping install of 'tidytuesdayR' from a github remote, the SHA1 (bf28f42c) has not changed since last instal...

1268 sym R (2052 sym/3 pcs) 1 img

Quiz 5

01.05.2020

Replicate a case study of marketing analytics: https://www.linkedin.com/learning/the-data-science-of-marketing/cluster-analysis-with-r?u=2232593 Q1 Import data myClusterData <- read.csv("/cloud/project/cluster-r.csv") myClusterData ## Email Behavior.3 ## 1 nisl@adipiscin...

669 sym R (53178 sym/6 pcs) 1 img

TidyTuesday

26.04.2020

Choose one of David Robinson’s tidytuesday screencasts, watch the video, and summarise. https://www.youtube.com/channel/UCeiiqmVK07qhY-wvg3IZiZQ Instructions You must follow the instructions below to get credits for this assignment. Read the document posted in Moodle before answering the following questions. Write in your own words. Multiple ...

3029 sym

Quiz 4

17.04.2020

Make sure to include the unit of the values whenever appropriate. Q1 Build a regression model to predict life expectancy using gdp per capita. Hint: The variables are available in the gapminder data set from the gapminder package. Note that the data set and package both have the same name, gapminder. library(tidyverse) options(scipen=999) data(...

2322 sym R (1843 sym/2 pcs)

Document

05.03.2020

In this exercise you will learn to visualize the pairwise relationships between a set of quantitative variables. To this end, you will make your own note of 8.1 Correlation plots from Data Visualization with R. # import data data(SaratogaHouses, package="mosaicData") # select numeric variables df <- dplyr::select_if(SaratogaHouses, is.numeric) ...

1702 sym R (722 sym/2 pcs) 2 img

Quiz2_b

20.02.2020

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") stock_pri...

1134 sym R (2669 sym/10 pcs) 6 img

Quiz2_a

18.02.2020

In this exercise you will learn to clean data using the dplyr package. To this end, you will follow through the codes in one of our e-texts, Data Visualization with R. The given example code below is from Chapter 1.2 Cleaning data. ## # A tibble: 87 x 13 ## name height mass hair_color skin_color eye_color birth_year gender ## <chr> <int>...

877 sym R (3982 sym/8 pcs)

Quiz 1

11.02.2020

Use the given code below to answer the questions. Q1 Import Netflix 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. Find ticker symbols from Yahoo Finance. ## Load package library(tidyverse) # for cleaning, plotting, etc library(tidyquant) # f...

2409 sym R (2829 sym/7 pcs) 1 img

Quiz1_mock

04.02.2020

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,028 x 7 ## date open high...

2030 sym R (760 sym/1 pcs) 1 img

Publish Document

30.01.2020

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

1399 sym R (1022 sym/3 pcs) 1 img