ReadAndFilterData: Read spring vegetation data from database or .csv

Description Usage Arguments Details Value

View source: R/utils.R

Description

Read spring vegetation data from database or .csv

Usage

1
2
ReadAndFilterData(conn, path.to.data, park, spring, field.season,
  data.source = "database", data.name)

Arguments

conn

Database connection generated from call to OpenDatabaseConnection(). Ignored if data.source is "local".

path.to.data

The directory containing the csv data exports generated from SaveDataToCsv(). Ignored if data.source is "database".

park

Optional. Four-letter park code to filter on, e.g. "MOJA".

spring

Optional. Spring code to filter on, e.g. "LAKE_P_BLUE0".

field.season

Optional. Field season name to filter on, e.g. "2019".

data.source

Character string indicating whether to access data in the spring veg database ("database", default) or to use data saved locally ("local"). In order to access the most up-to-date data, it is recommended that you select "database" unless you are working offline or your code will be shared with someone who doesn't have access to the database.

data.name

The name of the analysis view or the csv file containing the data. E.g. "LPICanopy", "TreeCountTransect". See details for full list of data name options.

Details

data.name options are: Spring, SpringVisit, LPICanopy, LPIDisturbance, LPISoilSurface, LPITransect, TreeCount, TreeCountTransect, VegetationInventory, VegetationInventoryTransect.

Value

A tibble of filtered data.


nationalparkservice/mojn-sv-rpackage documentation built on Oct. 29, 2021, 7:13 p.m.