Skip to content

Commit 43dd4f1

Browse files
committed
update restoration csv with finalized 2024 data
1 parent ed32624 commit 43dd4f1

File tree

4 files changed

+133
-128
lines changed

4 files changed

+133
-128
lines changed

R/00_smartsheetimport.R

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# remotes::install_github('fawda123/rsmartsheet'))
1+
# remotes::install_github('fawda123/rsmartsheet')
22
library(rsmartsheet)
33
library(dplyr)
44

5+
maxyr <- 2024
6+
57
# smartsheet import ---------------------------------------------------------------------------
68

79
smrkey <- Sys.getenv("smartsheets_key")
@@ -20,6 +22,7 @@ gpraraw <- get_sheet_as_csv('TBEP_NEPORT_Restoration_Data') %>%
2022
# select columns in correct order
2123
gpra <- gpraraw %>%
2224
filter(Status == 'Entered') %>%
25+
filter(Federal.Fiscal.Year == maxyr) %>%
2326
rename(
2427
Federal_Fiscal_Year = Federal.Fiscal.Year,
2528
Project_Name = Project.Name,
@@ -119,10 +122,10 @@ gpra <- gpraraw %>%
119122
AfterPhotoCaption
120123
)
121124

122-
# add to pre-smartsheet entries ---------------------------------------------------------------
125+
# add entries to main file --------------------------------------------------------------------
123126

124-
# read original
125-
orig <- read.csv(here::here('data-raw/restoration-noedit.csv'), stringsAsFactors = F)
127+
# read main file
128+
orig <- read.csv(here::here('restoration.csv'), stringsAsFactors = F)
126129

127130
# add smartsheet to original
128131
# change Enhancement to Maintenance

TBEP_Habitat_Restoration.Rproj

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Version: 1.0
2+
ProjectId: 18d3801b-daf8-4aff-88ad-ff18ec79aaad
23

34
RestoreWorkspace: Default
45
SaveWorkspace: Default

data-raw/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`restoration_noedit.csv` is restoration projects prior to preparing them on Smartsheet and was used in a previous workflow. Do not manipulate this file.

0 commit comments

Comments
 (0)