View source: R/functioncollection_import.R
ReadGeoClass | R Documentation |
This is a convenience wrapper function to import a GeoClass file as data frame into R. GeoClass files contain definitions of SLC (Soil and Land use Crop) classes in twelve to 14 predefined columns, see GeoClass.txt documentation.
ReadGeoClass(
filename = "GeoClass.txt",
encoding = c("unknown", "UTF-8", "Latin-1"),
verbose = TRUE
)
filename |
Path to and file name of the GeoClass file to import. Windows users: Note that Paths are separated by '/', not '\'. |
encoding |
Character string, encoding of non-ascii characters in imported text file. Particularly relevant when
importing files created under Windows (default encoding "Latin-1") in Linux (default encoding "UTF-8") and vice versa. See
also argument description in |
verbose |
Print information on number of data columns in imported file. |
ReadGeoClass
is a convenience wrapper function of fread
, with treatment of leading
comment rows. Column names are created on import, optional comment rows are imported as strings in attribute
'comment'.
Optional inline comments (additional non-numeric columns) are automatically identified and imported along with data columns.
ReadGeoClass
returns a data frame with added attribute 'comment'.
ReadClassData
te <- ReadGeoClass(filename = system.file("demo_model", "GeoClass.txt", package = "HYPEtools"))
te
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.