gdf: A widget for editing a data frame

Description Usage Arguments Value Author(s)

View source: R/gdf.R

Description

A widget for editing a data frame This implementation allows the user to edit a row (row-by-row). Change handlers are called after an edit is performed. The user can add a new row or remove the currently selected row (if more than 1 is present). The hidden argument do_add_remove_buttons can be set to FALSE to prevent this option. For large data sets, paging is used. the hidden argument page_size (with default of 200) can be set to adjust the size of each page.

Usage

1
2
3
gdf(items = NULL, handler = NULL, action = NULL, container = NULL, ...,
  width = 300, height = 200, ext.args = NULL,
  name = deparse(substitute(items)))

Arguments

items

data frame to be edited

handler

optional means (to addHandlerChanged) to specify a handler for the default signal. A handler is a function with signature (h,...) where h is a list with components obj referring to the object emitting the signal, action containing values passed to the action argument, and possible other values.

action

Passed to handler to parameterize a call

container

A parent container. In gWidgetsWWW2 a parent container is not optional (though it can be substituted with the parent argument in some circumstances). The parent specifies the widget heirarchy and the ... argument is used to pass along arguments to layout the child component in the parent container. Typically, these are passed to the add method of the parent container.

...

Used to pass along argument to the parent container's add method and possible other arguments to the underlying ference class constructors.

width

width in pixels of component. Sizing in gWidgetsWWW2 is sometimes necessary as the arguments expand and fill are not well implemented.

height

height in pixels of the component.

ext.args

The contructors of gWidgetsWWW2 ultimately call an Ext constructor. The options passed to the Ext constructor may be added to or overridden by use of this argument. Values are passed in as named list components and with values converted into JavaScript objects by asJSObject.

name

name of data frame appearing in title

Value

a GDf reference class object.

Author(s)

john verzani


gWidgetsWWW2 documentation built on May 2, 2019, 6:10 p.m.