| RvegToTv | R Documentation |
Exports an existing Rveg database into a CSV format compatible with the
Turboveg vegetation database management system. The function automatically
reconstructs full botanical names from the internal ShortName codes and
maps vegetation layers to standard Turboveg abbreviations.
RvegToTv(database, export = "export", checklist = "default", ver = 3)
database |
Character. The path and name of the existing |
export |
Character. The output path and name where the resulting Turboveg CSV file(s) will be saved. Defaults to a temporary directory. |
checklist |
Character. The species checklist used to match Rveg's 7-character
|
ver |
Numeric. The target Turboveg version format to export to (either |
During export, Rveg's alphanumeric layers are translated into Turboveg's
specific layer codes (e.g., 0 becomes ml, 1 becomes hl, 2 becomes s1,
3 becomes t1, and J becomes jl).
The output structure changes depending on the target Turboveg version specified
by the ver parameter:
Turboveg v3 (ver = 3): Writes a single, combined .csv file containing both header and species data.
Turboveg v2 (ver = 2): Writes two separate files: *R.csv for relevé species data and *H.csv for header data.
Writes one or two CSV files to the location specified by export,
depending on the chosen Turboveg version.
# Example: Exporting the built-in Rveg database to Turboveg v3 format
RvegToTv(
database = file.path(path.package("Rveg"), "extdata/ExampleDB", "example_1"),
ver = 3
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.