View source: R/fromHUC_finder.R
fromHUC_finder | R Documentation |
This function finds the hucs that flow into a given huc.
fromHUC_finder(huc, hucs, tohucs)
huc |
The huc in question |
hucs |
The list of all HUCs |
tohucs |
The list of TOHUCs |
The list of fromHUCs
David Blodgett dblodgett@usgs.gov
## Not run: load(system.file("extdata","testhucpoly.rda",package="HUCAgg")) print(testhucPoly@data$HUC12[which(testhucPoly@data$TOHUC %in% "070900020504")]) print(testhucPoly@data$HUC12[which(testhucPoly@data$TOHUC %in% "070900020604")]) hucList<-testhucPoly@data$HUC12 fromHUC<-sapply(hucList,fromHUC_finder,hucs=testhucPoly@data$HUC12,tohucs=testhucPoly@data$TOHUC) print(unlist(fromHUC["070900020504"][[1]])) print(unlist(fromHUC["070900020604"][[1]])) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.