setFactorKinrespData: setFactorKinrespData

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Codes the columns replicate, experiment, and suite as a factor.

Usage

1

Arguments

rd

data.frame holding the experimental observations.

Details

Functions for getting the respiration data into correct format
  • reading csv-files into a R-variable: read.csv
    Column names must correspond to the variables in assembleKinrespData

  • coding columns replicate, experiment, and suite as factors: this method

  • assembling existing R-variables into correct form: assembleKinrespData

  • creating a unique identifier for replicates across suits and experiments.: getSERId

Value

Modification of input rd.

Author(s)

Thomas Wutzler <thomas.wutzler@web.de>

See Also

twKinresp

Examples

1
2
3
4
5
6
7
8
if( FALSE){  # data file not available at R CHECK on R-forge
	(dataFilename <- file.path( system.file(package="twKinresp"), "data", "respWutzler10.csv" ))
	# may open the file with a text editor or a spreadsheet program to inspect the format
	rd0 <- read.csv(dataFilename)	# reading the data from file
	rd <- setFactorKinrespData(rd0) # Factor coding
	str(rd)
	rd[1:10,]
}

bgctw/twKinresp documentation built on May 10, 2019, 2:42 p.m.