Description Usage Arguments Value Note Author(s) References See Also Examples
These methods alter the audited object and return it with an updated transaction table. They are based on the corresponding methods for class keyed, and generate ‘transform’ transactions (aggregate, melt) or 'merge' transactions (merge).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ## S3 method for class 'audited'
aggregate(
x,
by = x[, setdiff(key(x), across),
drop = FALSE],
FUN,
across = character(0),
...
)
## S3 method for class 'audited'
melt(
data,
id.vars = key(data),
measure.vars,
variable_name = "variable",
na.rm = FALSE,
...
)
## S3 method for class 'audited'
merge(
x,
y,
strict = TRUE,
...
)
|
x |
audited object |
... |
passed to other methods |
by |
passed to aggregate.keyed |
FUN |
passed to aggregate.keyed |
across |
passed to aggregate.keyed |
data |
passed to melt.keyed |
id.vars |
passed to melt.keyed |
measure.vars |
passed to melt.keyed |
variable_name |
passed to melt.keyed |
na.rm |
passed to melt.keyed |
y |
right element of a join |
strict |
prevent dropping records from x |
audited
merge
can drop or add records, or both. It is an error if
strict
is TRUE and any records in x have no representation
(match on common columns) in the result. I.e., merge cannot
drop records without your expressed permission. Beware that due
to the rules for base::merge
, record counts may not be
strictly additive when merging.
Tim Bergsma
http://metrumrg.googlecode.com
cast,audited-method
as.keyed
as.audited
as.keyed.audited
as.igraph
audit
audited-package
Ops.audited
subset.audited
write.audit
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.