-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecoidx-meta.Rmd
48 lines (35 loc) · 1.21 KB
/
ecoidx-meta.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
title: "Ingest CCIEA Metadata Database"
author: "Ben Best"
date: "5/12/2021"
output:
html_document:
code_folding: hide
toc: true
toc_float: true
toc_depth: 4
editor_options:
chunk_output_type: console
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, message = F, warning = F)
if (!require(librarian)){
install.packages("librarian")
library(librarian)
}
shelf(
dplyr, DT, noaa-iea/ecoidx, googlesheets4, readr)
```
## Read Database
- Source: [ERDDAP_CCIEA_database_2021.20210317 - Google Sheets](https://docs.google.com/spreadsheets/d/1F8H2UFcajLVqq_MIPS0YAUt3ZnSSJP7cZ1hxCsMLW4g/edit?ts=6067b512#gid=747268021)
```{r}
# Google Sheet
# gs_url <- "https://docs.google.com/spreadsheets/d/1F8H2UFcajLVqq_MIPS0YAUt3ZnSSJP7cZ1hxCsMLW4g/edit" # original
gs_url <- "https://docs.google.com/spreadsheets/d/1wknYIkfmyMOZ1-7xNiJbAk9imOX2C3rUcskV_UPrQrs/edit" # editable copy
# shared to [email protected] as Editor
gs_json <- "/Volumes/GoogleDrive/My Drive/projects/iea-auto/data/iea-uploader-27c589771060.json"
gs4_auth(path = gs_json)
ecoidx_src <- "~/github/noaa-iea/ecoidx"
datasets <- read_csv(here("data/datasets.csv"), col_types = cols())
datasets
```