melt.audited: Transform Methods for Class Audited

Description Usage Arguments Value Note Author(s) References See Also Examples

Description

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).

Usage

 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, 
	...
)

Arguments

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

Value

audited

Note

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.

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also

Examples

1

audited documentation built on May 2, 2019, 4:45 p.m.