MRGcluster: Function that allows to apply parallel processing

View source: R/MRGcluster.R

MRGclusterR Documentation

Function that allows to apply parallel processing

Description

Function that allows to apply parallel processing

Usage

MRGcluster(nclus, ..., action = "start", clusType, outfile = NULL)

Arguments

nclus

Number of clusters to use for parallel processing. No parallelization is used for nclus = 1.

...

arguments that should be evaluated in the cluster (can also be called later)

action

Defines the action of the function. There are three options:

"start"

Starts a new cluster if necessary, reuses an existing if it has already been started

"restart"

Stops the cluster and starts it again. To be used in case there are difficulties with the cluster, or if the user wants to change the type of the cluster

clusType

The type of cluster; see makeCluster for more details. The default of makeCluster is used if type is missing or NA.

outfile

File to direct the output, makeCluster for more details.

Value

The function will either return a cluster for parallel computation, or stop a cluster (returning NULL)


MRG documentation built on Oct. 28, 2024, 5:07 p.m.

Related to MRGcluster in MRG...