Examples for 'hmapred::hadoop'


Experimental Hadoop chunk-processing code

Aliases: hadoop hmr hinput hpath c.hinput open.HDFSpath print.HDFSpath

Keywords: manip

### ** Examples

## Not run: 
##D ## map points to ZIP codes and count the number of points per ZIP
##D ## uses Tiger/LINE 2010 census data shapefiles
##D ## we can use ctapply becasue Hadoop guarantees contiguous input
##D 
##D ## require(fastshp); require(tl2010)
##D r <- hmr(
##D   hinput("/data/points"),
##D   map = function(x)
##D     table(zcta2010.db()[
##D        inside(zcta2010.shp(), x[,4], x[,5]), 1]),
##D   reduce = function(x) ctapply(as.numeric(x), names(x), sum))
## End(Not run)

[Package hmapred version 1.2-0 Index]