Skip to contents

Get a given attribute from a list of variables

Usage

getGivenAttribute(list_var, attribute)

Arguments

list_var

A list of variables (already initialized with init_variable)

attribute

A string specifying the attribute to retrieve in all occurrences of the list

Value

A list without NULL values

Examples

getGivenAttribute(init_variable(), "level")
#> Variable name should not contain digits, spaces, or special characters.
#> If any of these are present, they will be removed from the variable name.
#> $myVariable
#> [1] 2
#>