LoadHybas: Load a HydroBASINS shapefile into R

Description Usage Arguments Value Examples

Description

For a directory containing HydroBASIN shapefiles , load the file associated with the specified Pfaffstetter level and return an attribute table. NOTE: If a directory is provided, file naming convention must match original HYBAS (e.g. hybas_na_lev02_v1c.shp)

Usage

1
LoadHybas(path, area = "na", level = 7)

Arguments

area

which region to load. can be 'na' (north america), or 'ar' (arctic)

level

The desired Pfaffstetter level

directory

the directory containing HydroBASIN shapefiles. Searches recursively.

Value

A list containing a spatial object and an attribute table

Examples

1
 LoadHybas("~/HydroBASINS", 'ar', 3)

ECCC-MSC/Basin-Delineation documentation built on June 9, 2019, 7:29 p.m.