editAsText {plotAndPlayGTK}R Documentation

Edit a data frame in spreadsheet-compatible format

Description

This is analogous to edit.data.frame, but rather than a spreadsheet-like table, it writes the data in flat text format (tab-delimited) into a text box, and reads it back after editing. It is more difficult to read than a table, but it has the advantage of being able to copy and paste to/from an external spreadsheet program.

Usage

editAsText(x, title = NULL, edit.row.names = any(row.names(x) != 1:nrow(x)))

Arguments

x a data.frame.
title the window title. For editAsText the default is based on x.
edit.row.names whether to include row names as an editable column.

Details

If the number of rows changes a warning is issued.

New factor levels can not be added. Factor levels not in the original set will be NA.

Value

editAsText returns a data frame, which should have the same column types as x.

Author(s)

Felix Andrews felix@nfrac.org

See Also

edit.data.frame, edit, read.delim

Examples

## Not run: 

str(iris)
str(editAsText(iris))

## End(Not run)

[Package plotAndPlayGTK version 0.8.78 Index]