prev-methods {x12}R Documentation

~~ Methods for Function prev and cleanArchive in Package x12 ~~

Description

Function prev in package x12 reverts to previous parameter settings and output.
Function cleanHistory resets x12OldParameter and x12OldOutput.

Usage

## S4 method for signature 'x12Single'
prev(object,n=NULL)
## S4 method for signature 'x12Batch'
prev(object,index=NULL,n=NULL)
## S4 method for signature 'x12Single'
cleanHistory(object)
## S4 method for signature 'x12Batch'
cleanHistory(object,index=NULL)

Arguments

object

object of class x12Single-class or x12Batch-class.

n

index corresponding to a previous run.

index

index corresponding to (an) object(s) of class "x12Single".

Methods

signature(object = "x12Single")
signature(object = "x12Batch")

Note

cleanHistory is deprecated and cleanArchive should be used instead.

Author(s)

Alexander Kowarik

See Also

x12

Examples

data(AirPassengersX12)
summary(AirPassengersX12)
# a maximum of 10 previous x12 runs are added to the summary
summary(AirPassengersX12,oldOutput=10)
#the x12Parameter and x12Output of the x12Single is set to the previous run of x12
Ap=prev(AirPassengersX12)
summary(AirPassengersX12,oldOutput=10)

[Package x12 version 1.10.3 Index]