as_list: As List

Description Usage Arguments Value Examples

View source: R/as-list.R

Description

Coerces an object to an list. All attributes are removed except any names.

Usage

1
2
3
4
as_list(x, ...)

## Default S3 method:
as_list(x, ...)

Arguments

x

An object.

...

Other arguments passed to methods.

Value

A list.

Examples

1
2
as_list(1:3)
as_list(c(x = 1, y = 2))

extras documentation built on Aug. 5, 2021, 9:07 a.m.