destructurezeallot includes destructure methods for the following classes:
character, complex, Date, data.frame, and
summary.lm. See details for how each object is transformed into a
list.
# S3 method for character
destructure(x)# S3 method for complex
destructure(x)
# S3 method for Date
destructure(x)
# S3 method for data.frame
destructure(x)
# S3 method for summary.lm
destructure(x)
# S3 method for default
destructure(x)
An R object.
A list of elements from x.
character values are split into a list of individual characters.
complex values are split into a list of two values, the real and the
imaginary part.
Date values are split into a list of three numeric values, the year,
month, and day.
data.frame values are coerced into a list using as.list.
summary.lm values are coerced into a list of values, one element for
each of the eleven values returned by summary.lm.