argument indicating the type of trend to be removed (Default=0)
type=0: Subtracts mean value from each signal
type=1: Subtracts a linear trend (least-squres fit)
type=trInfo object: Subtracts a trend specified by the object
Value
A list containing two objects: the detrended data and the trend information
Details
R by default doesn't allow return of multiple objects. The %=%
operator and g function in this package facillitate this behaviour. See
the examples section for more information.