toList: Make sure the object is a list

View source: R/utilities.R

toListR Documentation

Make sure the object is a list

Description

Make sure the object is a list

Usage

toList(object)

Arguments

object

Object to be converted to a list.

Value

If is.list(object) == TRUE, returns the object; otherwise, list(object).

Examples

toList(list("a" = 1, "b" = 2))
toList(c("a" = 1, "b" = 2))


ospsuite.utils documentation built on March 18, 2022, 6:44 p.m.