Learn R Programming

RSurvey (version 0.8-3)

EditData: Edit Data

Description

A GUI for viewing and editing table formatted data.

Usage

EditData(d, col.names = names(d), row.names = NULL, col.formats = NULL, read.only = FALSE, changelog = NULL, win.title = "Data", parent = NULL)

Arguments

d
list, matrix, or data.frame; the data used to populate the table.
col.names
character; a vector of column names.
row.names
character; a vector of row names.
col.formats
character; a vector of format conversion specification strings, see sprintf and strftime.
read.only
logical; specifies whether the table is in read only mode.
changelog
data.frame; history of all data table edits (see ‘Value’).
win.title
character; a string to display as the title of the dialog box.
parent
tkwin; the GUI parent window.

Value

NULL is returned if no edits were made; otherwise, new values of d and changelog are returned as components in a list. The changelog data frame contains the following variables:
timestamp
POSIXct; identifies when the edit event occurred.
record
character; row name.
variable
character; column name.
old
character; value before editing.
new
character; value after editing.

Details

Row titles are taken from the row names attribute of d. Pattern searches are performed using grep. Edits are reflected in the changelog.

See Also

BuildHistogram