HypeDataImport | R Documentation |
These are simple convenience wrapper functions to import various HYPE data files as data frame into R.
ReadAquiferData(
filename = "AquiferData.txt",
verbose = TRUE,
header = TRUE,
na.strings = "-9999",
sep = "\t",
stringsAsFactors = FALSE,
encoding = c("unknown", "latin1", "UTF-8"),
...
)
ReadOutregions(
filename = "Outregions.txt",
verbose = TRUE,
header = TRUE,
na.strings = "-9999",
sep = "\t",
stringsAsFactors = FALSE,
encoding = c("unknown", "latin1", "UTF-8"),
...
)
ReadBranchData(
filename = "BranchData.txt",
verbose = TRUE,
header = TRUE,
na.strings = "-9999",
sep = "\t",
stringsAsFactors = FALSE,
encoding = c("unknown", "latin1", "UTF-8"),
...
)
ReadCropData(
filename = "CropData.txt",
verbose = TRUE,
header = TRUE,
na.strings = "-9999",
sep = "\t",
stringsAsFactors = FALSE,
encoding = c("unknown", "latin1", "UTF-8"),
...
)
ReadDamData(
filename = "DamData.txt",
verbose = TRUE,
header = TRUE,
na.strings = "-9999",
sep = "\t",
quote = "",
stringsAsFactors = FALSE,
encoding = c("unknown", "latin1", "UTF-8"),
...
)
ReadFloodData(
filename = "FloodData.txt",
verbose = TRUE,
header = TRUE,
na.strings = "-9999",
sep = "\t",
quote = "",
stringsAsFactors = FALSE,
encoding = c("unknown", "latin1", "UTF-8"),
...
)
ReadGlacierData(
filename = "GlacierData.txt",
verbose = TRUE,
header = TRUE,
na.strings = "-9999",
sep = "\t",
stringsAsFactors = FALSE,
encoding = c("unknown", "latin1", "UTF-8"),
...
)
ReadLakeData(
filename = "LakeData.txt",
verbose = TRUE,
header = TRUE,
na.strings = "-9999",
sep = "\t",
quote = "",
stringsAsFactors = FALSE,
encoding = c("unknown", "latin1", "UTF-8"),
...
)
ReadMgmtData(
filename = "MgmtData.txt",
verbose = TRUE,
header = TRUE,
na.strings = "-9999",
sep = "\t",
stringsAsFactors = FALSE,
encoding = c("unknown", "latin1", "UTF-8"),
...
)
ReadPointSourceData(
filename = "PointSourceData.txt",
verbose = TRUE,
header = TRUE,
na.strings = "-9999",
sep = "\t",
stringsAsFactors = FALSE,
encoding = c("unknown", "latin1", "UTF-8"),
data.table = FALSE,
...
)
ReadAllsim(filename = "allsim.txt", na.strings = "-9999")
ReadForcKey(
filename = "ForcKey.txt",
sep = "\t",
encoding = c("unknown", "latin1", "UTF-8")
)
ReadUpdate(
filename = "update.txt",
header = TRUE,
sep = "\t",
stringsAsFactors = FALSE,
encoding = c("unknown", "latin1", "UTF-8"),
data.table = FALSE,
...
)
filename |
Path to and file name of HYPE data file file to import. Windows users: Note that Paths are separated by '/', not '\'. |
verbose |
Logical, display message if columns contain |
header |
|
na.strings |
See |
sep |
See |
stringsAsFactors |
See |
encoding |
|
... |
Other parameters passed to |
quote |
See |
data.table |
Logical, return data.table instead of data frame. |
Hype data file imports, simple read.table
or fread
wrappers with
formatting arguments set to match HYPE file specifications:
In most files, HYPE requires NA
-free input in required columns, but empty values are
allowed in additional comment columns. Informative warnings will be thrown if NA
s are found during import.
Imported files are returned as data frames.
te <- ReadForcKey(filename = system.file("demo_model", "ForcKey.txt", package = "HYPEtools"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.