parallelize {EMJMCMC}R Documentation

An example of user defined parallelization (cluster based) function for within an MJMCMC chain calculations (mclapply or lapply are used by default depending on specification and OS).

Description

An example of user defined parallelization (cluster based) function for within an MJMCMC chain calculations (mclapply or lapply are used by default depending on specification and OS).

Usage

parallelize(X, FUN)

Arguments

X

a vector (atomic or list) or an expressions vector. Other objects (including classed objects) will be coerced by as.list

FUN

the function to be applied to each element of X or v, or in parallel to X

Details

Only allowed when working with big.memory based hash table within MJMCMC (see runemjmcmc for more details)

Value

parallelize(X,FUN), a list of the same length as X and named by X

See Also

parLapply clusterMap mclapply lapply


[Package EMJMCMC version 1.5.0 Index]