makelist: makelist a utility that outputs a list structure defined by...

View source: R/rutils.R

makelistR Documentation

makelist a utility that outputs a list structure defined by its input

Description

makelist is a utility that performs the common task of making a list structure of the same length as the vector of names input. It also names each of the list components after the vector of names. The output list structure is then ready to be populated with results.

Usage

makelist(scenes)

Arguments

scenes

an vector of character names describing different scenarios

Value

a list of length scenes names for the vector of names in scenes

Examples

scenarios <- c("base_case","higher_M","Lower_M")
changeM <- makelist(scenes=scenarios)
changeM

haddonm/codeutils documentation built on April 15, 2024, 1:02 p.m.