ReadSpeciesList: ReadSpeciesList

Usage Arguments Author(s) Examples

View source: R/ReadSpeciesList.R

Usage

1
ReadSpeciesList(TerrADat_Path, Internal)

Arguments

TerrADat_Path

file path to the TerrADat geodatabase. Set to NULL if you are internal (within Bureau of Land Management network/vpn)

Internal

logical. TRUE if within BLM network/on vpn. FALSE if accessing TerrADat via external geodatabase.

Author(s)

Rachel Burke, ecologist/analyst @ Jornada

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#If working on external geodatabase:
SpeciesList <- ReadSpeciesList(TerrADat_Path = "~/gdbs/TerrADat.gdb", Internal = FALSE)
#If working within BLM network:
SpeciesList <- ReadSpeciesList(TerrADat_Path = NULL, Internal = TRUE)

## The function is currently defined as
function (TerrADat_Path, Internal){
  if(!Internal){
    SpeciesList<- sf::st_read(dsn = TerrADat_Path ,
                              layer = "tblStateSpecies")}
  if(Internal){
    SpeciesList <- SpeciesList
  }

  SpeciesList <- SpeciesList 
  return(SpeciesList)
}

R-Burke/SiteSummaryTool documentation built on Oct. 15, 2020, 8:21 p.m.