read.dd: Importing Sample Design Databases for AIM Sample Designs

View source: R/reading.R

read.ddR Documentation

Importing Sample Design Databases for AIM Sample Designs

Description

This function imports one or more Sample Design Database[s] and returns a list of the named lists sf, pts, and strata. The named lists contain SpatialPoints/PolygonsDataFrames of the sample frame, points, and strata from each of the geodatabases. The SPDFs are named using the filename of the geodatabase source, so that each list has one SPDF named for each geodatabase imported and those names are identical between lists. If a Sample Design Database is missing any one of those features, a NULL value replaces the SPDF.

Usage

read.dd(
  src = "",
  dd.src,
  split = TRUE,
  omitNAdesignations = FALSE,
 
    projection = sp::CRS("+proj=longlat +datum=NAD83 +no_defs +ellps=GRS80 +towgs84=0,0,0")
)

Arguments

src

Character string defining the filepath containing the sample design database[s].

dd.src

Character string or character vector containing the filenames of the geodatabases to import. Each filename should include the extension ".gdb"

split

Logical. If TRUE then databases containing multiple designs will be split so that they appear as separate designs in the output list rather than kept together due to coming from the same database. Defaults to TRUE.

projection

sp::CRS() call defining the coordinate reference system. Defaults to NAD83 with sp::CRS("+proj=longlat +ellps=GRS80 +datum=NAD83 +no_defs"). Is used to reproject all SPDFs in order to perform spatial manipulations.

omNAdesignations

Logical. if TRUE then any plots with a final designation of NA are dropped after reading. Defaults to FALSE.


nstauffer/aim.analysis documentation built on Nov. 2, 2023, 12:52 a.m.