Last data update: 2014.03.03

R: Average all the data collected on the same day.
averagebydayR Documentation

Average all the data collected on the same day.

Description

This function is useful for grouping a number of replicate air shots or calibration experiments

Usage

averagebyday(x, newlabel)

Arguments

x

an object of class timeresolved, logratios, PHdata or redux

newlabel

a string with the new label that should be given to the average

Value

an object of the same class as x

Examples

dfile <- system.file("Calibration.csv",package="ArArRedux")
dlabels <- c("H1","AX","L1","L2")
md <- loaddata(dfile,dlabels,PH=TRUE)
ld <- fitlogratios(blankcorr(md))
d <- averagebyday(ld,"DCAL")
plotcorr(d)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(ArArRedux)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/ArArRedux/averagebyday.Rd_%03d_medium.png", width=480, height=480)
> ### Name: averagebyday
> ### Title: Average all the data collected on the same day.
> ### Aliases: averagebyday
> 
> ### ** Examples
> 
> dfile <- system.file("Calibration.csv",package="ArArRedux")
> dlabels <- c("H1","AX","L1","L2")
> md <- loaddata(dfile,dlabels,PH=TRUE)
> ld <- fitlogratios(blankcorr(md))
> d <- averagebyday(ld,"DCAL")
> plotcorr(d)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>