tdata | R Documentation |
tdata
objectCreate 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 data
metadata (named list
) containing any metadata associated with the data frames
new_tdata(data, code = "", join_keys = NULL, metadata = NULL)
data |
(named |
code |
( |
join_keys |
( |
metadata |
(named |
A tdata
object.
as_tdata
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.