relist: Re-listing an unlist()ed object

Description Usage Arguments Value See Also Examples

Description

relist is a generic function with a few methods in order to allow easy inversion of unlist(x).

NOTE: This man page is for the relist S4 generic function defined in the BiocGenerics package. See ?utils::relist for the default method (defined in the utils package). Bioconductor packages can define specific methods for objects not supported by the default method.

Usage

1
relist(flesh, skeleton)

Arguments

flesh

A vector-like object.

skeleton

A list-like object. Only the "shape" (i.e. the lengths of the individual list elements) of skeleton matters. Its exact content is ignored.

Value

A list-like object with the same "shape" as skeleton and that would give flesh back if unlist()ed.

See Also

Examples

1
2
3
relist
showMethods("relist")
selectMethod("relist", c("ANY", "ANY"))  # the default method

nturaga/BiocGenerics documentation built on May 7, 2019, 11:15 a.m.