Publications by Jordyn Carpenter

Introduction to ggplot2

24.02.2020

# Load packages library(tidyquant) library(tidyverse) # Import stock prices stock_prices <- tq_get(c("AAPL", "MSFT"), get = "stock.prices", from = "2020-01-01") stock_prices ## # A tibble: 70 x 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 AAPL 2020...

571 sym R (2678 sym/10 pcs) 6 img

Clean data

19.02.2020

Q1 select Keep the variables name, eye_color, and films. ## # A tibble: 87 x 3 ## name eye_color films ## <chr> <chr> <list> ## 1 Luke Skywalker blue <chr [5]> ## 2 C-3PO yellow <chr [6]> ## 3 R2-D2 red <chr [7]> ## 4 Darth Vader yellow <chr [4]>...

536 sym R (2878 sym/7 pcs)

Quiz 1

10.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 ## Visualize stocks %>% ggplot(aes(x = date, y = adjusted)) + geom_line() Q1 Import Netflix s...

1187 sym R (1395 sym/6 pcs)

My First RMarkdown with Code

04.02.2020

Use the given code below to answer the questions. Q1 Get Amazon stock prices, instead of Apple. ## # A tibble: 1,028 x 7 ## date open high low close volume adjusted ## <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 2016-01-04 656. 658. 628. 637. 9314500 637. ## 2 2016-01-05 647. 647. 628. 634. 5822600 ...

686 sym R (748 sym/1 pcs) 1 img

My First Publication

27.01.2020

Q1 What is R? R is a coding language used primarily for statistics Q2 What is RStudio? RStudio is a program used to write, run, and save code written in R Q3 What is R packages? R packages are downloadable files to add more features to R’s base set of functions Q4 Add code ...

287 sym

Mock Quiz 1

03.02.2020

Use the given code below to answer the questions. Q1 Get Walmart stock prices, instead of Apple. ## # A tibble: 1,029 x 7 ## date open high low close volume adjusted ## <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 2016-01-04 60.5 61.5 60.4 61.5 11989200 55.7 ## 2 2016-01-05 62.0 63.0 61.8 62.9 1332600...

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

Correlation

20.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. Q1 What factors have strong positve correlation with home price? Living Area and Bathrooms Q2 Continued from Q1: Does the strong correl...

1754 sym 2 img

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

941 sym R (1736 sym/4 pcs)

Quiz 2

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

1236 sym R (1818 sym/6 pcs) 2 img

Quiz 4

27.10.2020

Witht the given stock, conduct the Bollinger Bands analysis by answering the questions below. Q1 Calculate 20-day moving averages and 20-day running standard deviation. Save the result under stock and print it. Hint: Take stock, pipe it to tidyquant::tq_mutate to calculate 20-day moving averages, pipe it to tidyquant::tq_mutate to calculate 20-d...

2682 sym R (68 sym/1 pcs) 1 img