Publications by Dirk Hartog

Wk1: Loading Data Into a Data Frame

03.09.2023

OVERVIEW The article and the subsequent data that I choose to work with is titled “Congress Today Is Older Than It’s Ever Been: OK, boomer? More like boomer, OK!” publised on the FiveThirtyEight.com. The articl can be found here The article describes some basic statistics, identifies and visualizes trends in the ages of the memebers of The Ho...

2497 sym R (2469 sym/11 pcs) 2 img

R Bridge homework wk 3

28.07.2023

“Illustration of the globe with trendlines” The data set that I am looking at is the growth regression data as provided by Durlauf & Johnson (1995). There are 10 variables that are captured for each country (observation). The 10 variables are: oil: factor. Is the country an oil-producing country? inter: factor. Does the country have better qu...

6005 sym R (9076 sym/21 pcs) 8 img

R-programming Bridge Course W2 Homework

23.07.2023

Read in a .csv file from github using the raw data link BONUS – place the original .csv in a github file and have R read from the link. urlfile <- 'https://raw.githubusercontent.com/D-hartog/csv_file/main/mcu_films.csv' mcu <- read.csv(urlfile) head(mcu) Cleaned up data frame by Dropping the column labeled “X” that carried in index labels C...

1534 sym

R-programming Bridge Course W1 Homework

14.07.2023

Problem 1 Write a loop that calculates 12 factorial x <- 1 for(i in 1:12){ x <- x * i } x ## [1] 479001600 Problem 2 Show how to create a numeric vector that contains the sequence from 20 to 50 by 5. y <- seq(20, 50, by = 5) y ## [1] 20 25 30 35 40 45 50 Problem 3 Create the function “quad” that takes a trio of input numbers and solves ...

327 sym