Publications by Dirk Hartog
R-programming Bridge Course W2 Homework
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
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