Publications by Nick Cote
Week 2: Best Practices 1
Chapter 1 It’s Not Just about Forecasting The following are the key points in the chapter. Elaborate on each point in at least 30 words. Understanding economics can help you to diagnose the causes of increases or decreases in sales volumes and costs. There are many things that can make the economic values of a company increase or decrease. Th...
1731 sym
Document
Welcome Ch1 Introduction The data science project workflow Prerequisites R RStudio r packages Install the tidyverse package Running R code Getting help Google Stackoverflow Ch2 Introduction to Data Exploration Ch3 Data Visualization Set up data aesthetics x y color size alpha shape common problems Sometimes you’ll run the code a...
1358 sym
Document
title: “Week 12: Code along 11” subtitle: “R for Data Science CHAPTER 19 Functions” author: “Nick Cote” date: “2022-11-13” output: html_document: toc: yes editor_options: chunk_output_type: console — # Load packages # Core library(tidyverse) library(tidyquant) Ch19 Functions Introduction When Should You write a function? # F...
380 sym R (2452 sym/23 pcs)
Document
Import stock prices stocks <- tq_get(c("AAPL", "NFLX"), get = "stock.prices", from = "2016-01-01", to = "2017-01-01") stocks ## # A tibble: 504 × 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 AAPL 2...
50 sym Python (1096 sym/3 pcs) 1 img
Document
import data filter rows arrange rows #select columns add columns summarize by groups mutate by groups Coding basics R as a calculator 1000/10 ## [1] 100 assignment symbol What’s in a name? Calling functions Use of TAB seq(from = 1, to = 10, by = 1) ## [1] 1 2 3 4 5 6 7 8 9 10 continuation character, + seq(from = 1, to = 10...
284 sym Python (209 sym/8 pcs)
Document
## # A tibble: 1,096 × 5 ## # Groups: symbol [8] ## symbol date price change text ## <chr> <date> <dbl> <dbl> <glue> ## 1 GDPC1 1947-01-01 2034. NA 1947.1, ## Growth: NA ## 2 GDPC1 1947-04-01 2029. -0.00267 1947.2, ## Growth: -0.3% ## 3 GDPC1 1947-07-01 2025. -0.00207 1947.3, #...
2589 sym 1 tbl
Document
Chater Openning Questions Managers need to know: Managers need to know how to anticipate a recession as well as what causes one to occur. This is an important skill to have, especially if your business is heavily effected by the economy’s uncertainty. The crucial information are the signs given off by an economy nearing the start of a recessio...
5967 sym 1 tbl
Document
# load packages library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.3.6 ✔ purrr 0.3.4 ## ✔ tibble 3.1.8 ✔ dplyr 1.0.10 ## ✔ tidyr 1.2.0 ✔ stringr 1.4.1 ## ✔ ...
140 sym R (3382 sym/10 pcs)
Document
# Load packages library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.3.6 ✔ purrr 0.3.4 ## ✔ tibble 3.1.8 ✔ dplyr 1.0.10 ## ✔ tidyr 1.2.0 ✔ stringr 1.4.1 ## ✔ r...
142 sym R (4191 sym/12 pcs)
Publish Document
# Load packages library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.3.6 ✔ purrr 0.3.4 ## ✔ tibble 3.1.8 ✔ dplyr 1.0.10 ## ✔ tidyr 1.2.0 ✔ stringr 1.4.1 ## ✔ r...
142 sym R (4191 sym/12 pcs)