View source: R/clean_WeirData.R
clean_weirData | R Documentation |
Processes the raw FINS trapping query and adds important fields for summaries (e.g., Survey Year, Reporting Group, Transect Name, Above Weir, Origin, Mark and Recapture etc.)
clean_weirData(data)
data |
raw CDMS redd dataset from |
Ryan N. Kinzer
con <- RODBC::odbcConnect(dsn = 'Fins', uid = 'guest', pwd = 'guest')
qry <- "SELECT distinct(Facility) FROM FINS_all_trapping"
f <- RODBC::sqlQuery(con, qry) %>% mutate_all(as.character) %>% pull(Facility)
npt_f <- f[grepl('NPT', f)]
weir_dat <- get_FinsTrapping(npt_f, odbc_connection = con)
tmp <- clean_weirData(weir_dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.