Description Usage Arguments Details Value Author(s) References See Also Examples
Generic, with method for data.frame. Display sorted unique rows.
1 2 3 4 5 6 7 8 9 |
x |
object inheriting from data.frame |
key |
columns to show first (default sort criteria) |
depth |
integer up to length of key: actual sort criteria |
detect |
columns to preprocess: non-NA values will be replaced with options('defined') or just 'defined' |
count |
whether to tabulate the number of each unique row; logical, or length-one character giving a column name for tabulations (default: 'count') |
... |
ignored |
Columns identified as 'key' are moved to the front (by default, all).
Sorting cascades across the key columns, using the second column to break ties, etc. Permutations of column order help to make patterns obvious.
Sorting can be limited to a subset of key columns using 'depth'.
Unique rows are displayed; the number of each such is tabulated as 'count' if
count
is TRUE. Supply an alternate column name in place of TRUE, if you wish.
For column names in detect
, all defined values are replaced with options('defined'),
which you can manipulate ('defined' by default). Useful when one wishes to examine
patterns of missingness, rather than actual value details.
For keyed objects, the detect
affect can be achieved more simply by subsetting
with a leading asterisk on column names. See examples.
keyed data.frame
Tim Bergsma
http://metrumrg.googlecode.com
as.keyed
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.