editDataset {Rcmdr}R Documentation

R Commander Dataset Editor

Description

Allows the user to enter a new dataset, modify data values in an existing dataset, add rows or columns to the dataset, or delete rows or columns.

Usage

editDataset(data, dsname, ...)
## S3 method for class 'data.frame'
editDataset(data, dsname, ...)
## S3 method for class 'character'
editDataset(data, dsname, ...)
## S3 method for class 'NULL'
editDataset(data, dsname, ...)

Arguments

data

an R data frame to edit; this argument is optional, and if absent an empty data frame is created, into which the user can enter data.

dsname

the quoted name of the data set, into which the edited data frame will be placed in the global environment. If absent and an existing data frame is edited, the modified version will replace the original version; if absent and a new data set is created, it will be given the name "Dataset".

...

not used by the data.frame method.

Details

editDataset is a straightforward spreadsheet-like data editor, suitable for editing data frames that are not too large (say smaller than about 10,000 values). It is defined as a generic function with a data.frame method to allow for objects with unique properties that inherit from the data.frame class. The character and NULL methods permit editing an initially empty data set.

Value

This function does not return a useful value, but has the side effect of modifying or creating a data set in the global environment.

Note

editDataset is limited to editing data frames that are composed only of numeric, factor, and logical columns.

Author(s)

John Fox jfox@mcmaster.ca

See Also

edit.data.frame, for the standard R data editor.

Examples

  if (interactive()) editDataset()

[Package Rcmdr version 2.9-2 Index]