detrend: Detrend Cq data

Description Usage Arguments Value Author(s) Examples

View source: R/detrend.R

Description

Removes x-trend and/or y-trend from Cq data using lmRob.

Usage

1
2
detrend(data = NULL, detr = "xy", 
  nx = NULL, ny = NULL, inc.bs = FALSE)

Arguments

data

cqdat object or data frame

detr

character string: if "x", "y" or "xy" remove x-trend, y-trend or both respectively.

nx, ny

numbers of rows and columns. If NULL, maxima of the x- and y-locations from data are used.

inc.bs

logical, if TRUE include removed trends in result.

Value

If inc.bs is FALSE, the matrix of detrended data.

If inc.bs is TRUE then a list containing:

data

the detrended data

b.x

the removed trend for x

b.y

the removed trend for y

Author(s)

Philip Wilson

Examples

1
2
3
4
dat<-fetch(Exp37a,1)

dat2<-detrend(dat,inc.bs=TRUE)
dat2[c("b.x","b.y")]

edpcr documentation built on May 2, 2019, 5:22 p.m.

Related to detrend in edpcr...