Publications by Harold Nelson

Presidential Performance

01.04.2020

library(tidyverse) ## ── Attaching packages ────────────────── tidyverse 1.2.1 ── ## ✔ ggplot2 3.2.1 ✔ purrr 0.3.3 ## ✔ tibble 2.1.3 ✔ dplyr 0.8.3 ## ✔ tidyr 1.0.0 ✔ stringr 1.4.0 ## ✔ readr 1.3.1 ✔ forcats 0.4.0 ## ── Conflicts ──────────...

322 sym R (1822 sym/16 pcs)

List Exercises 2

29.03.2020

List Exercises 2 Harold Nelson 9/24/2020 Exercise Google for help on the randint() function and use it to get and print a single random integer between 0 and 100. Answer import random x = random.randint(0,100) print(x) ## 3 Exercise Use randint() to create a list of 20 random integers between 0 and 100. Answer randlist = [] for i in range(2...

1412 sym R (1094 sym/20 pcs)

CSC 360 March 16 2020

16.03.2020

Lecture March 16 2020 Harold Nelson 3/15/2020 Setup library(tidyverse) ## ── Attaching packages ───────────────────────────── tidyverse 1.3.0 ── ## ✓ ggplot2 3.3.0 ✓ purrr 0.3.3 ## ✓ tibble 2.1.3 ✓ dplyr 0.8.5 ## ✓ tidyr 1.0.2 ✓ stringr 1.4.0 ## �...

2855 sym R (3775 sym/18 pcs)

Set Exercises 3

02.03.2020

Set Exercises 3 Harold Nelson 3/2/2020 Primary Possibilities These exercises are based on the material beginning on page 46 of the finite mathematics text. The first task is to generate the data in the table. Each row of the table is to be represented as a tuple with 5 items (a 5-tuple). The first item in the tuple is a sequential number begin...

1694 sym R (4602 sym/34 pcs)

Cohort

02.03.2020

Cohorts Libraries and Data library(tidyverse) ## ── Attaching packages ─────────────────── tidyverse 1.3.0 ── ## ✓ ggplot2 3.2.1 ✓ purrr 0.3.3 ## ✓ tibble 2.1.3 ✓ dplyr 0.8.4 ## ✓ tidyr 1.0.2 ✓ stringr 1.4.0 ## ✓ readr 1.3.1 ✓ forcats 0.4.0 ## ── Conflicts...

1695 sym R (3160 sym/14 pcs) 3 img

Notes Feb 28 CSC 360

28.02.2020

Notes Feb 28 Harold Nelson 2/28/2020 Libraries and Data library(tidyverse) ## ── Attaching packages ───────────────────────── tidyverse 1.3.0 ── ## ✓ ggplot2 3.2.1 ✓ purrr 0.3.3 ## ✓ tibble 2.1.3 ✓ dplyr 0.8.4 ## ✓ tidyr 1.0.2 ✓ stringr 1.4.0 ## ✓ readr ...

1395 sym R (2059 sym/11 pcs) 6 img

Python Set Exercises

26.02.2020

Exercises on Sets Nelson 10/12/2020 Sets, Lists and Tuples From the Datacamp Tutorial on sets. “The major difference is that sets, unlike lists or tuples, cannot have multiple occurrences of the same element and store unordered values.” Exercise Create ASet, AList and ATuple, all of which contain “cat”, “dog” and “parrot”. Pri...

4415 sym R (4470 sym/87 pcs)

Race Year TFR

26.02.2020

Total Fertility Rate library(tidyverse) load("/cloud/project/Nat0718.Rdata") Get Rate by Race, Year and Age RaceYrAge = Nat0718 %>% group_by(Race,yr,Age) %>% summarize(Births = sum(Births), Fpop = sum(Fpop) ) %>% mutate(Rate = Births/Fpop) #View(RaceYrAge) Get TFR by Race and Year RaceYear = RaceYrAge %>% group_by(Race, yr)...

103 sym R (384 sym/5 pcs) 1 img

Exercises 1

24.02.2020

Explore Nat0718 Harold Nelson 2/24/2020 Libraries and Data library(tidyverse) ## ── Attaching packages ──────────────────────── tidyverse 1.3.0 ── ## ✓ ggplot2 3.2.1 ✓ purrr 0.3.3 ## ✓ tibble 2.1.3 ✓ dplyr 0.8.4 ## ✓ tidyr 1.0.2 ✓ stringr 1.4.0 ## ✓ readr ...

226 sym R (970 sym/7 pcs) 2 img

Binary to Decimal

18.02.2020

Binary to Decimal Harold Nelson 2/18/2020 Polynomial Interpretation Assume that a binomial number is represented as a string. The string ‘1101’ is converted to a decimal value using the expression \[ 1*2^3 + 1*2^2 + 0*2^1+1*2^0 \] What tells you that the highest power is 3? Ex1 How would you get this value in python code? Answer The leng...

1404 sym R (1498 sym/16 pcs)