Learn R Programming

intoo (version 0.4.0)

5_other_list_utilities: Unpack Named Lists

Description

Copy elements from a named list into the current environment.

Usage

UNPACK (x)

Arguments

x

A named list.

Details

This function is a wrapper for the list2env function.

Examples

Run this code
# NOT RUN {
f <- function ()
    list (x=1, y=2)

UNPACK (f () )
x
y
# }

Run the code above in your browser using DataLab