Learn R Programming

RSurvey (version 0.7-0)

ManageData: Manage Data

Description

A GUI for managing, querying, and formatting data.

Usage

ManageData(cols, vars, parent = NULL)

Arguments

cols
list; see Value.
vars
list; see Value.
parent
tkwin; the GUI parent window.

Value

  • Queries and sets the cols component of Data, 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:
  • namecharacter; variable name.
  • unitcharacter; measurement units (optional); programmatic manipulation of measurement units is only supported for date and time variables.
  • formatcharacter; the conversion specification format (optional).
  • idcharacter; a unique identifier that is created from a string concatenation of name and unit.
  • funcharacter; the expression evaluated when computing the variables vector of values.
  • indexinteger; the variables component index number in the data.raw data frame, see ImportData. Only required for variables directly linked to data columns in data.raw.
  • classcharacter; the data class of the vector object.
  • summarylist; a summary of the variables descriptive statistics (see SummarizeData).
  • commentscharacter; user comments.
  • The vars object is a list with components:
  • x, y, z, t, vx, vyinteger; the index number of the corresponding state variable in cols.
  • The vars component of Data is updated to reflect the removal and (or) reordering of variables.

Details

This GUI lets you: (1) specify the names, measurement units, and format of variables; (2) add new variables based on user defined functions, see EditFunction; (3) display data in a spreadsheat, see ViewData; and (4) remove and (or) reorder variables in the data table.

Examples

Run this code
data(project)
ManageData(project$cols, project$vars)

Run the code above in your browser using DataLab