Get or set the value of the datanames slot.
Arguments
- x
(
teal_data) object to access or modify- value
(
character) new value for@datanames; all elements must be names of variables existing in@env
Details
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.