Skip to content

Commit

Permalink
changed path to where food habits data is downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
andybeet committed Oct 19, 2021
1 parent 799f9d5 commit dd11195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data-raw/search_fhdbs.r
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#'
library(magrittr)
# location of downloaded file
file <- here::here("data-raw","foodHabitData.rdata")
file <- here::here("data-raw/data","foodHabitData.rdata")
download.file("https://github.com/NOAA-EDAB/ECSA/raw/master/data/allfhsg.RData",destfile=file)


Expand Down Expand Up @@ -70,7 +70,7 @@ find_prey <- function(datafile=file,predator,area=F) {
find_predators <- function(datafile=file) {
load(datafile) # load fh data
# read in functional group data
fg <- readr::read_csv(here::here("data-raw","functionalGroupNames.csv"))
fg <- readr::read_csv(here::here("data","functionalGroupNames.csv"))
preds <- allfhsg %>%
dplyr::distinct(svspp) %>%
dplyr::rename(SVSPP = svspp) %>%
Expand All @@ -80,4 +80,4 @@ find_predators <- function(datafile=file) {

return(preds)

}
}

0 comments on commit dd11195

Please sign in to comment.