This method executes the analysis steps defined in the mverse objected across the entire multiverse.

execute_multiverse(.mverse, parallel = FALSE, progress = FALSE)

# S3 method for class 'mverse'
execute_multiverse(.mverse, parallel = FALSE, progress = FALSE)

Arguments

.mverse

a mverse object.

parallel

passed to multiverse::execute_multiverse() to indicate whether to execute the multiverse analysis in parallel. Defaults to FALSE.

progress

passed to multiverse::execute_multiverse() to indicate whether to include a progress bar for each step of the execution. Defaults to FALSE.

Value

The resulting mverse object.

Examples

# Define a mutate branch.
hurricane_strength <- mutate_branch(
  # damage vs. wind speed vs.pressure
  NDAM,
  HighestWindSpeed,
  Minpressure_Updated_2014,
  # Standardized versions
  scale(NDAM),
  scale(HighestWindSpeed),
  -scale(Minpressure_Updated_2014),
)
# Create a mverse and add the branch.
mv <- create_multiverse(hurricane) %>%
  add_mutate_branch(hurricane_strength)
# The branched variables are not populated across the multiverse yet.
# Execute the multiverse; the variables are populated after the execution.
execute_multiverse(mv)