r - different 'apply' methods in RHive API -
rhive api contains 5 'apply' functions:
rhive.napply rhive.sapply rhive.mrapply rhive.mapapply rhive.reduceapply
unfortunately, rhive manual not provide description
what difference between them?
please, ...
i found partial answer in brilliant manual:
http://www.slideshare.net/miloveme/r-hive-introduction • napply : r apply function numeric type • sapply : r apply function string type
also, went rhive source code here:
https://github.com/nexr/rhive/blob/master/rhive/r/rhive.r#l76
i found, rhive.mapapply , rhive.reduceapply call rhive.mrapply inside.
rhive.mrapply generic function map-reduce applying, , rhive.mapapply/reduceapply "syntactic sugar"
examples of rhive.mapapply usage here:
https://github.com/nexr/rhive/blob/master/rhive/inst/unittests/runit-rhive.script.r
Comments
Post a Comment