Skip to content

Commit

Permalink
add inputs to initial
Browse files Browse the repository at this point in the history
  • Loading branch information
colinpmillar committed Oct 16, 2024
1 parent 0a898e1 commit 15ad182
Show file tree
Hide file tree
Showing 8 changed files with 1,137 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# 2024_ETC_EIAs
# 2024_ETC_EIAs
2 changes: 1 addition & 1 deletion boot/DATA.bib
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ @Misc{google_sheets
title = {},
period = {},
access = {Public},
source = {script},
source = {folder},
}
215 changes: 215 additions & 0 deletions boot/initial/data/google_sheets/Aquaculture-Med.csv

Large diffs are not rendered by default.

215 changes: 215 additions & 0 deletions boot/initial/data/google_sheets/Aquaculture-NEA.csv

Large diffs are not rendered by default.

345 changes: 345 additions & 0 deletions boot/initial/data/google_sheets/Fisheries-Med.csv

Large diffs are not rendered by default.

354 changes: 354 additions & 0 deletions boot/initial/data/google_sheets/Fisheries-NEA.csv

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions report.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
## After:

library(icesTAF)
library(glue)

mkdir("report")

Expand All @@ -12,6 +13,7 @@ all_data <- readRDS("data/all_data.rds")

sankeys <- list()

# tab <- "Fisheries-NEA"
for (tab in names(all_data)) {
mkdir(glue("report/{tab}"))
data <- all_data[[tab]]
Expand Down
6 changes: 4 additions & 2 deletions boot/google_sheets.R → worksheet.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ data <-
ranges,
function(range) {
x <- read_sheet(glue(base), range = range)
write.taf(x, file = paste0(gsub(" ", "", range), ".csv"), quote = TRUE)
fname <- paste0(gsub(" ", "", range), ".csv")
write.taf(x, file = taf.boot.path("initial", "data", "google_sheets", fname), quote = TRUE)
x
},
simplify = FALSE)
simplify = FALSE
)

0 comments on commit 15ad182

Please sign in to comment.