I learned how to use R Markdown and Latex together to format my final dissertation! Repo can be found here: https://github.com/yaaminiv/dissertation
Things that were annoying to figure out: table formatting, figure formatting, making things horizontal vs. vertical.
install.packages(“usethis”) #Install packages
usethis::use_course(“hglanz/rworkshop_Jan2021”) #Download materials from GitHub repo (https://github.com/hglanz/rworkshop_Jan2021) to machine
Modified from this link.
coverageFiles <- list.files(pattern = "*bedgraph") #Create a file list for all 10 files to import
make.names(gsub("s1_R1_val_1_bismark_bt2_pe.deduplicated.bismark.cov_", "", coverageFiles))), read.table),
envir = .GlobalEnv) #Import files with list2env. Use lapply to setNames of the files by taking all the common parts of their names out. Files will be named zr2096_#_5x.bedgraph