convert_vector_to_list: Convert Vector to Expanded List

View source: R/convert_vector_to_list.R

convert_vector_to_listR Documentation

Convert Vector to Expanded List

Description

Converts a vector to list where each element is replicated a certain number of times depending on the previous vector. Also work for ranged lists

Usage

convert_vector_to_list(x, x_max = x, verbose = TRUE)

Arguments

x

vector or ranged list to be converted

x_max

reference vector or ranged list with max values for x

verbose

if ‘TRUE', sends messages to user about what’s being done

Value

expanded/replicated version of x


tmatta/lsasim documentation built on Aug. 25, 2023, 5:50 p.m.