Extract plot counts by inventory year and state.
datPlotcnt(
plt,
yrtype = "INVYR",
states = NULL,
designcd = FALSE,
forsamp = TRUE,
total = TRUE,
subtotal = TRUE,
savedata = FALSE,
outfolder = NULL,
outfn = NULL,
gui = FALSE
)
Data frame. Table of plot-level variables to count plots. If using this table, it must include INVYR.
String. Type of year to categorize data ("INVYR", "MEASYEAR").
String vector. The states in plt table.
Logical. If TRUE, includes FIA design codes in the table.
Logical. If TRUE, includes forest/nonforest/nonsampled codes in the table.
Logical. If TRUE, a row is added to bottom of table with a total for the whole table.
Logical. If TRUE, a row is added to bottom of each section for subtotals.
Logical. If TRUE, saves data to outfolder as comma-delimited file (*.csv). No objects are returned. If FALSE, the data are saved as R objects and returned to user. See details for caveats.
String. The output folder path. If NULL and savedata=TRUE or parameters=TRUE, outfolder is the working directory.
String. The name of the output file. If NULL, defaults to pltcnt_'date'.csv
Logical. If TRUE, gui windows pop up for parameter selection.
pltcnt - a dataframe of counts (YEAR, STABBR, STCD, PLOTS, NONSAMPLED, FOREST, NONFOREST)