This function is designed to translate between data frame structures from flat files or databases into the objects.
Outside of a full ORM solution, this is best for just mapping S3, S4, and R6 classes to databases with the goal of recreating them in some other session.
1 2 3 | construct(data, defn, ...)
deconstruct(objs, defn, ...)
|
data |
(tbl) data frame object where each row is object data |
defn |
(opt) class definition
|
... |
(arg) method-specific arguments |
objs |
(lst) list of objects conforming to that the class |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.