read_vft {fgeo.tool} | R Documentation |
Import ViewFullTable or ViewTaxonomy data from a .tsv or .csv file.
Description
read_vft()
and read_taxa()
help you to read ViewFullTable and
ViewTaxonomy data from text files delivered by the ForestGEO database.
These functions avoid common problems about column separators, missing
values, column names, and column types.
Usage
read_vft(file, delim = NULL, na = c("", "NA", "NULL"), ...)
read_taxa(file, delim = NULL, na = c("", "NA", "NULL"), ...)
Arguments
file |
A path to a file. |
delim |
Single character used to separate fields within a record. The
default ( |
na |
Character vector of strings to interpret as missing values. Set this
option to |
... |
Other arguments passed to |
Value
A tibble.
Acknowledgments
Thanks to Shameema Jafferjee Esufali for inspiring the feature that
automatically detects delim
(issue 65).
See Also
readr::read_delim()
, type_vft()
, type_taxa()
.
Other functions to read text files delivered by ForestgGEO's database:
type_vft()
Examples
assert_is_installed("fgeo.x")
library(fgeo.x)
example_path()
file_vft <- example_path("view/vft_4quad.csv")
read_vft(file_vft)
file_taxa <- example_path("view/taxa.csv")
read_taxa(file_taxa)