Publications by Tim Mulholland

Quiz 1

11.02.2020

Use the given code below to answer the questions. ## Load package library(tidyverse) # for cleaning, plotting, etc library(tidyquant) # for financial analysis ## Import data stocks <- tq_get("AAPL", get = "stock.prices", from = "2016-01-01") stocks ## # A tibble: 1,033 x 7 ## date open high low close volume adjusted ## <date> ...

2233 sym R (2950 sym/8 pcs) 2 img

Mock Quiz 1

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

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

My First RMarkdown with Code

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

1289 sym R (993 sym/3 pcs) 1 img

My First Publication

23.01.2020

Q1 What is R? R is a program used to code and analyze data Q2 What is RStudio? The platform used to run R Q3 What is R packages? Add ons used for different functions in R Hint: Type your answer in bold. Note: For help with RMarkdown syntax, go Help > Cheatsheets > R Markdown Reference Guide. Q4 Add a code chunk. ...

327 sym

Bivariate Graphs

25.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. Q1 Plot the distribution of daily returns by stock using kernel density plots. Hint: See the code in 4.3.2 Grouped kernel density plots. Q2 Plot the distribution of dail...

1433 sym 3 img

Quiz 1

30.08.2020

Q1 What is R? R is a computer programming language used to analyze data. Q2 What is RStudio? Rstudio is an interface to R Q3 What is R packages? R packages are a group of downloadable functions and data sets. ##Q4 How about code? summary(cars) ...

241 sym R (13 sym/1 pcs)

Quiz 1

09.09.2020

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

1321 sym R (1736 sym/4 pcs)

Quiz 2

23.09.2020

In this exercise, use Chapter 4.2 Quantitative vs. Quantitative Data Visualization with R. # Load packages library(tidyquant) library(tidyverse) # Import stock prices stock_prices <- tq_get(c("AAPL", "MSFT", "AMZN"), get = "stock.prices", from = "2020-01-01") # Calculate daily returns stock_returns <- stock_prices %>% group_by(...

1916 sym R (2746 sym/7 pcs) 1 img

Quiz3

07.10.2020

# Load packages library(tidyquant) library(tidyverse) Q1 dividends Import dividends of Costco and Target since 2000. stock_div <- tq_get(c("COST", "TGT"), get = "dividends", from = "2000-01-01") stock_div ## # A tibble: 152 x 3 ## symbol date value ## <chr> <date> <dbl> ## 1 COST ...

1330 sym R (4979 sym/15 pcs)

Quiz 4

23.10.2020

Witht the given stock, conduct the Bollinger Bands analysis by answering the questions below. ## Loading required package: lubridate ## ## Attaching package: 'lubridate' ## The following objects are masked from 'package:base': ## ## date, intersect, setdiff, union ## Loading required package: PerformanceAnalytics ## Loading required pack...

2544 sym R (5818 sym/24 pcs) 1 img