The dataview package contains a number of option for tailoring its
behaviour. These options are stored as a named list in a single global
varible named "dataview". To overwrite an option fetch the default values
default.options, modify the returned results and set it back as
in the example below.
1 2 3
Option to retrieve.
Below is a description of the available options,
but to understand how they work it is probably easier to directly study the
return value of
Column alignment, left or right.
A named list with columns to use in
object element should be a named list of functions to be
applied on each object that is to be queried.
envir element should be a named list of functions to be
applied on the object or environment on which
called together with its "accessors", which are object names
(for environments) or named indices (for everything else).
All functions should return a vector of values that can be used as
A named list of custom print functions.
By default each column of a
is printed in a similar way as
data.frame. If you wish to override this behaviour for
a given column, please supply a named print function here.
The function will be given the column as returned by the corresponding
column function above, and should produce a character vector.
A list of named summary functions. These are fed a column and should return a single value.
1 2 3 4 5 6