Description Usage Arguments Value Author(s) Examples
View source: R/fromHUC_finder.R
This function finds the hucs that flow into a given huc.
1  | fromHUC_finder(huc, hucs, tohucs)
 | 
huc | 
 The huc in question  | 
hucs | 
 The list of all HUCs  | 
tohucs | 
 The list of TUHUCs  | 
The list of fromHUCs
David Blodgett dblodgett@usgs.gov
1 2 3 4 5 6 7 8 9 10  | ## 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.