DistApply(using,fun,args)

Run a function fun with the argument args on each segment in a sub-process and return a list of segment results.

Syntax

DistApply(using,fun,args)

Description

If there are a large number of segments per sub-process, you may consider using DistReduce() instead of DistApply(). When there are a large number of segments, DistReduce() will shrink the amount of data being passed to the accum and will perform better than DistApply().

Arguments

using
The column information for each segment. This "primes" the data for the sub-processes.
fun
The function to be applied to each segment. fun takes a single argument.
args
The argument to fun.

Return Value

A list of segment results.