datanames | R Documentation |
teal_data
objectGet or set the value of the datanames
slot.
datanames(x)
datanames(x) <- value
x |
( |
value |
( |
The @datanames
slot in a teal_data
object specifies which of the variables stored in its environment
(the @env
slot) are data sets to be taken into consideration.
The contents of @datanames
can be specified upon creation and default to all variables in @env
.
Variables created later, which may well be data sets, are not automatically considered such.
Use this function to update the slot.
The contents of @datanames
or teal_data
object with updated @datanames
.
td <- teal_data(iris = iris)
td <- within(td, mtcars <- mtcars)
datanames(td)
datanames(td) <- c("iris", "mtcars")
datanames(td)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.