created anGetData(), to deprecate (anSAdata, anGBdata, anMAdata)
removed anSApop_ecomap() removed anSApop_RAVG()
added new function, spGetXY(), to clip XY coordinates before getting plot data. this function returns spatial sf points (if returnxy=TRUE) or a non-spatial data frame of xy plot identifiers and state information. the function is run within spGetPlot() or independently, with intent to separate spatial and non-spatial processes.
spGetPlots added parameter, xy_datsource, to identify datsource of xy data changed xy.joinid to xyjoinid
added functionality for P2VEG adjustment factors in modGBpop() added new function to calculate P2VEG estimates - modGBp2veg() added new parameter in datSumTree() and datSumTreeDom() to give flexibility name of adjustment factor, tadjvar, with default="tadjfac"
spGetStrata()/spGetEstUnit() changed keepxy parameter to returnxy
Deprecated: spGetModeldat() changed to spGetAuxiliary()
added anSApop_report() function removed checks for sf and rgdal package in installed.packages changed installed.packages(.Library) to installed.packages() to check for suggests packages and changed from stop to message when a package does not exist
changed estimation rawdata output names unit.rowest to unit_rowest unit.colest to unit_colest unit.totest to unit_totest unit.grpest to unit_grpest
DBgetPlots()
modGBpop()
Model-assisted
Fixed bug in spGetStrata when using more than one NODATA value.
Added ability to output results in metric units.
Variable changes in modPBpop and modPB functions pnt to pntdat plt.nonsamp.filter to nonsamp.pfilter pnt.nonsamp.filter to nonsamp.pntfilter plt.filter to pfilter pnt.filter to pntfilter
Fixes bugs in spGetStrata() if you are using a raster and you already have a variable named STRATUMCD in your data table, it will now create add make sure the name is not duplicated by adding _1 or _2, etc.\cr Specified rast.NODATA values were not carried through to plot assignments, but this is fixed.\cr The NAlst was not returned when keepNA=TRUE, but also fixed.
All overwrite parameters were made into 2 parameter (overwrite_dsn, overwrite_layer) for overwriting dsn versus overwriting layer in dsn or file (e.g., shp, csv) in outfolder.
spGetPlots() Changed output names from for consistency when clipxy=TRUE and clipxy=FALSE. clip_polyv to bndx clip_tabs to tabs tabs$clip_* to tabs$* clip_xyplt to xypltx
Combined pfilter and cfilter into pcfilter
This release contains updates for core functions and Green Book (GB), Model-Assisted (MA), and Photo-Based (PB) modules. There are also several additional analysis functions for streamlining routines and generating core tables of estimates and core reports.
Next priorities include: (1) updating SA module; (2) adding to core tables and reports; (3) on-the-fly estimation for Growth/Removal/Mortality (GRM), P2 vegetation, and Change; (4) and continued documentation.
Changed Oracle database connections and queries from using RODBC package to DBI. DBI package is more versatile for querying Oracle and spatial databases.
Added sf package to list in anticipation to use for vector spatial manipulations.
Fixed bugs in anGBest_core()
Changes:
Added 2 new packages in Suggests DBI, RSQLite
Changed all input parameters of vector spatial files from 1 parameter to 2 parameters This change will allow flexibility for different inputs of vector layers. The past options were only for shapefiles or objects. Now we can use options such as GeoPackages or SQLite databases.
Removed default connection to Oracle database (creating FIESTAO for FIA use only)
Removed RODBC from package Suggests (in DESCRIPTION file)
Added capability of writing tables and spatial layers to a SQLite database or geopackage, or geodatabase (if arcgisbinding package is installed).
Converted sp* functions from using class Spatial* to class sf objects.
Switched input of spatial object to dsn instead of layer and switched order of parameters.
Changed name of spReprojectSpatial function to spReprojectVector.
Changed pltstrat to pltassgn
Changes to functions: spMakeSpatialPoints - changed parameters: x to xvar; y to yvar - removed parameters: EPSGCD and prj4str - added parameter: crs (for EPSG or PROJ.4 string inputs)
DBgetPlots - - spconddat - plot-level, condition data (for displaying condition attributes) - spxy - spatial xy coordinates (PLT_CN, x, y)