ManageVariables: Manage Variables
Description
A GUI for managing variables in the data table.Usage
ManageVariables(cols, vars, query, changelog, parent = NULL)
Arguments
query
character; see Value.
changelog
data.frame; see Value.
parent
tkwin; the GUI parent window. Value
Returns a 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:
- name
- character; variable name.
- format
- character; the conversion specification format (optional).
- id
- character; a unique identifier that is created from
name. - fun
- character; the expression evaluated when computing the variables
vector of values.
- index
- integer; the variables component index number in the
data.raw data frame, see ImportText. Only required
for variables directly linked to data columns in data.raw. - class
- character; the data class of the vector object.
- summary
- summaryDefault; a summary of the variables descriptive statistics
(see
summary). - comments
- character; user comments.
The vars object is a list with components:
- x, y, z, vx, vy, sort.on
- integer; 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. - query
- character; if required, variable names are updated.
- changelog
- data.frame; if required, names in
variable component are
updated.
Details
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.