When no filtering is requested, the column headers can be clicked to
sort the values.
The svalue
method returns the selected value(s). By
default, only the value(s) in the chosen column are
returned. Use the argument drop=FALSE
to return the
entire row. To return the row index, use the argument
index=TRUE
. When filtering is being used, this index
refers to the entire data frame, not just the visible data frame.
The "["
notion treats the object like a data frame. When
filtering or sorting, this notation refers to the entire data frame, not
the visible or rearranged data frame.
Assignment via "[<-"
may be used. In gWidgetsRGtk there are
limitations. The number of columns may not be
reduced. Assignment with both row and column indices missing may
be needed for some desired actions.
As with data frames, the data type of a variable is
important. In particular, assignment with
"[<-"
for factors can cause warnings if the values are
not in the factor's levels. When the value being assigned is a
matrix there is a coercion to a data frame which may change
the type.
The visible
and visible<-
methods refer to which
rows of the data store are visible in the widget. These are
specified by a vector of class logical. This may be used when
there is filtering, not sorting.
The dim
method returns the dimension of the data frame.
The dimnames
method works, although you can't see the
rownames, you can assigne to column names, although
names
is more convenient.
A single click is used for selection of a value.
The addhandlerdoubleclick
handler responds to a double
click event.