Publications by Harold Nelson
Exercises on Functions Part 1
Exercises on Functions Harold Nelson 1/26/2022 Exercise 1 Create a function my_range() that returns the value of the range of a numeric vector. Solution my_range = function(x){ return(max(x) - min(x)) } rn = rnorm(1000) my_range(rn) ## [1] 6.100267 range(rn) ## [1] -3.022921 3.077346 Note that the built-in range() function does not do the ...
1877 sym
Dataframe Exercises
Dataframes Harold Nelson 2023-09-04 What is a Dataframe? A data frame is a list of vectors of equal length. Each vector becomes a column, and each element within the vector is a row entry for that column. Creating a Dataframe You can create a data frame using the data.frame() function. Examples df1 <- data.frame(name = c("Alice", "Bob"), age =...
1545 sym
Demo
Demo Harold Nelson 2023-04-19 Slide 1 Just a demo. Setup library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.4.1 ✔ purrr 0.3.4 ## ✔ tibble 3.2.1 ✔ dplyr 1.1.1 ## ✔ tidyr ...
548 sym 1 img
Chapter 10 Notes
Chapter 10 Notes Harold Nelson 2023-04-08 Setup library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.4.1 ✔ purrr 0.3.4 ## ✔ tibble 3.2.1 ✔ dplyr 1.1.1 ## ✔ tidyr 1.2.1 ...
100 sym Python (2412 sym/17 pcs) 1 img
Quarto 9.1
Quarto of 9.1 Setup Get County Boundaries county <- counties(cb = TRUE, resolution = '20m', progress_bar = FALSE) class(county) [1] "sf" "data.frame" glimpse(county) Rows: 3,221 Columns: 13 $ STATEFP <chr> "05", "08", "26", "28", "38", "39", "21", "02", "48", "40",… $ COUNTYFP <chr> "121",...
1025 sym
Chapter 9 Notes
Chapter 9 Notes Harold Nelson 2023-03-28 Setup library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.4.1 ✔ purrr 0.3.4 ## ✔ tibble 3.2.1 ✔ dplyr 1.1.1 ## ✔ tidyr 1.2.1 ...
1039 sym Python (10254 sym/72 pcs)
Chapter 7 Notes
Chapter 7 Notes Harold Nelson 2023-03-16 Part 1 of Chapter 7 This includes 7.1 and 7.2 Setup library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.4.1 ✔ purrr 0.3.4 ## ✔ tibble 3.2.1 ...
3686 sym Python (13561 sym/57 pcs) 7 img
Arrow
Arrow Harold Nelson 2023-03-26 Setup library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.4.1 ✔ purrr 0.3.4 ## ✔ tibble 3.2.1 ✔ dplyr 1.1.1 ## ✔ tidyr 1.2.1 ✔ string...
953 sym Python (6614 sym/31 pcs)
Statistical Functions
Statistical Functions Harold Nelson 2023-03-23 Setup library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.4.1 ✔ purrr 0.3.4 ## ✔ tibble 3.2.1 ✔ dplyr 1.1.1 ## ✔ tidyr 1.2....
1842 sym
Using the Normal Curve Table
Using the Normal Curve Table Harold Nelson 2023-03-24 Using the Normal Curve Table or not! I want to show you why in 2023 nobody needs a normal curve table. Example 1 Use the normal curve table to find the probability that a random variable with a standard normal distributiom has a value below 1.37. Find the row for 1.3 then slide your finger ac...
640 sym