Learn R Programming

RavenR (version 2.2.0)

rvn_rvh_blankHRUdf: Generate Blank Raven HRU DataFrame

Description

Used to generate a blank HRU table that can be filled in by the user. Compatible with rvn_rvh_write.

Usage

rvn_rvh_blankHRUdf(nHRUs = 1, subbasinIDs = NULL)

Value

data.frame of blank HRU properties to be filled in by user

Arguments

nHRUs

Number of HRUs, used to determine number of rows in table (default = 1)

subbasinIDs

Subbasins that HRUs belong to (default = all equal 1)

Author

Leland Scantlebury

Details

Note that if the length of the subbasinIDs vector is greater than the number of HRUs (nHRUs) specified, this will create a table with HRUs belonging to multiple subbasins, which is not feasible. A warning will be issued that the table will need to be modified for hydrologic consistency.

See Also

rvn_rvh_blankSBdf to generate blank subbasin data frame

Examples

Run this code
HRUtable <- rvn_rvh_blankHRUdf(nHRUs = 3, subbasinIDs=c(1,1,2))
HRUtable

# fewer nHRUs than subbasinIDs specified
rvn_rvh_blankHRUdf(nHRUs = 1, subbasinIDs=c(1,2))

Run the code above in your browser using DataLab