| TvToRveg | R Documentation |
Converts a Turboveg export file into a fully functional Rveg database.
The function parses plot headers, standardizes species nomenclature against a
specified checklist, and maps vegetation layers.
TvToRveg(tv, export = "export", checklist = "default", Rveglayers = TRUE)
tv |
Character. The file path to the Turboveg export file ( |
export |
Character. The output path and name of the new |
checklist |
Character. The species checklist used to match Turboveg full
names to Rveg's 7-character |
Rveglayers |
Logical. If |
This function natively supports both .csv and .xml Turboveg export formats.
In Turboveg, either selecet Standard XML file or Spreadsheet table.
For spreadsheet export, select semicolon-delimited format and include the requested header data.
During the import process, the function operates interactively:
Species Resolution: If a species in the Turboveg file cannot be automatically matched to the provided checklist, the function will pause and prompt the user to manually resolve the unknown species using a search interface.
Scale Selection: The user will be prompted to specify whether the imported abundance data uses percentages ("P") or the Braun-Blanquet scale ("BB").
Writes two linked CSV files (*REL.csv and *HEAD.csv = Rveg database) to the location
specified by export.
if (interactive()) {
# Example: Importing a Turboveg CSV export (or use tvexport.xml)
TvToRveg(
tv = file.path(path.package("Rveg"), "extdata/ExampleDB", "tvexport.csv"),
Rveglayers = TRUE
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.