tdata {teal} | R Documentation |
Create a tdata
object
Description
Create a new object called tdata
which contains data
, a reactive
list of data.frames
(or MultiAssayExperiment
), with attributes:
-
code
(reactive
) containing code used to generate the data join_keys (
join_keys
) containing the relationships between the datametadata (named
list
) containing any metadata associated with the data frames
Usage
new_tdata(data, code = "", join_keys = NULL, metadata = NULL)
Arguments
data |
(named |
code |
( |
join_keys |
( |
metadata |
(named |
Value
A tdata
object.
See Also
as_tdata
Examples
data <- new_tdata(
data = list(iris = iris, mtcars = reactive(mtcars), dd = data.frame(x = 1:10)),
code = "iris <- iris
mtcars <- mtcars
dd <- data.frame(x = 1:10)",
metadata = list(dd = list(author = "NEST"), iris = list(version = 1))
)
# Extract a data.frame
isolate(data[["iris"]]())
# Get code
isolate(get_code_tdata(data))
# Get metadata
get_metadata(data, "iris")