exportNPSForVeg: exportNPSForVeg

View source: R/exportNPSForVeg.R

exportNPSForVegR Documentation

exportNPSForVeg

Description

This function exports NETN forest data that are formatted to match flat files that can be imported into the NPSForVeg R package. Abandoned plots, QAQC visits, partial visits (e.g., ACAD-029-2010), and non-VS plots are not included in the export. Note the every year after 2024, the cycles code will need to be updated.

Usage

exportNPSForVeg(export = T, path = NA, zip = F, keep = T)

Arguments

export

Logical. If TRUE (default), saves formatted csvs to specified path.

path

Quoted path to save files to. If not specified, will save to working directory.

zip

Logical. If TRUE, exports zip file of csvs with timestamp of date generated. If FALSE (default), exports individual csvs.

keep

Logical. If TRUE (default), assigns NPSForVeg objects to global environment. If FALSE, does not return output, which is useful when export = T.

Value

NPSForVeg flatfiles

Examples

## Not run: 
# RUN FIRST
library(forestNETN)
importData()
filepath <- "C:/NETN/R_Dev/data/NPSForVeg/NETN"
exportNPSForVeg(export = T, path = filepath, keep = T)
exportNPSForVeg(export = T, path = filepath, keep = F)
exportNPSForVeg(export = T, path = filepath, keep = F, zip = T)


## End(Not run)


KateMMiller/forestNETN documentation built on Nov. 11, 2024, 6:07 a.m.