Learn R Programming

apollo (version 0.0.1)

apollo_splitDataDraws: Splits data and draws for loading in cluster

Description

Splits the database and the draws (if given) in a list with as many elements as apollo_control$nCores.

Usage

apollo_splitDataDraws(apollo_control, database, draws = NA,
  silent = FALSE)

Arguments

apollo_control

List. Contains options for the estimation. See apollo_validatecontrol.

database

data.frame. Estimation data.

draws

List. Draws as created by apollo_makeDraws.

silent

Boolean. If TRUE, no information is printed to console or default output.

Value

List. Each element is a list containing two elements: a fraction of the database and a fraction of the draws (if given).

Details

Internal use only. This function is called by apollo_makeCluster.