empty_list: Create an Empty List

View source: R/S03_Utilities.R

empty_listR Documentation

Create an Empty List

Description

Creates a list with a specified number of empty slots.

Usage

empty_list(size, labels = NULL)

Arguments

size

The number of slots.

labels

An optional character vector (whose length equals size) with labels for the slots.

Value

A list.

Examples

# An empty list with 3 slots
empty_list(3)

# An empty list with labels
empty_list( 3, paste0( "S0", 1:3 ) )

rettopnivek/arfpam documentation built on Oct. 20, 2024, 7:24 p.m.