convert_vector_to_list {lsasim}R 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


[Package lsasim version 2.1.5 Index]