names.teal_data {teal.data} | R Documentation |
Names of data sets in teal_data
object
Description
Functions to get the names of a teal_data
object.
The names are obtained from the objects listed in the qenv
environment.
Usage
## S3 method for class 'teal_data'
names(x)
Arguments
x |
A ( |
Details
Objects named with a .
(dot) prefix will be ignored and not returned.
To get the names of all objects, use ls(x, all.names = TRUE)
, however, it
will not group the names by the join_keys topological structure.
In order to rename objects in the teal_data
object, use base R functions (see examples).
Value
A character vector of names.
Examples
td <- teal_data(iris = iris)
td <- within(td, mtcars <- mtcars)
names(td)
# hidden objects with dot-prefix
td <- within(td, .CO2 <- CO2)
names(td) # '.CO2' will not be returned
# rename objects
td <- teal_data(iris = iris)
td <- within(td, {
new_iris <- iris
rm(iris)
})
names(td) # only 'new_iris' will be returned
[Package teal.data version 0.7.0 Index]