A graphical user interface (GUI) for managing variables in the data table.
ManageVariables(cols, vars, query, changelog, parent = NULL)list. See ‘Value’ section
list. See ‘Value’ section
character. See ‘Value’ section
data.frame. See ‘Value’ section
tkwin. GUI parent window
Returns an object of class list with components cols and vars.
The cols object is a list whose length is equal to the current number of data variables.
Each component in cols is linked to a specific variable,
and contains the following components:
variable name
conversion specification format (optional)
unique identifier that is created from name.
expression evaluated when computing the variables vector of values.
variable's component index number in the data.raw data table, see ImportText.
Only required for variables directly linked to data columns in data.raw.
data class of the vector object.
summary of the variable's descriptive statistics (see summary).
user comments
the index number of the corresponding state variable in cols.
These indexes are updated to reflect the removal and (or) reordering of variables in cols.
if required, variable names are updated.
if required, names in the variable component are updated.
This GUI lets you:
(1) specify the names and format of variables;
(2) add new variables based on user defined functions, see EditFunction;
(3) display data in a spreadsheet, see EditData; and
(4) remove and (or) reorder variables in the data table.
# NOT RUN {
Data(replace.all = obj)
ManageVariables(obj$cols, obj$vars, obj$query, obj$changelog)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab