Skip to contents

Extract variables from a named list

Usage

extract_vars(x, ..., keep = FALSE, env = parent.frame())

Arguments

x

A named list

...

The names of the variables named arguments are allowed to rename the variables. b = "a" will extract a and assign it to b

keep

Keep the extracted variables in the list

env

The environment to assign the extracted variables

Value

The list with/ithout the extracted variables