as.data.frame.TP: Coerce TP object to data.frame

as.data.frame.TPR Documentation

Coerce TP object to data.frame

Description

Function for converting an object of class TP to a data.frame.

Usage

## S3 method for class 'TP'
as.data.frame(x, ...)

Arguments

x

An object of class TP.

...

Ignored.

Value

A data.frame containing the data.frames for all time points in the TP object bound together.

See Also

Other functions for data preparation: createTimePoints(), getTimePoints(), plot.TP(), removeTimePoints(), summary.TP()

Examples

## Create a TP object containing the data from the Phenovator.
phenoTP <- createTimePoints(dat = PhenovatorDat1,
                            experimentName = "Phenovator",
                            genotype = "Genotype",
                            timePoint = "timepoints",
                            repId = "Replicate",
                            plotId = "pos",
                            rowNum = "y", colNum = "x",
                            addCheck = TRUE,
                            checkGenotypes = c("check1", "check2",
                                               "check3", "check4"))
## Convert phenoTP to data.frame.
phenoDat <- as.data.frame(phenoTP)


statgenHTP documentation built on April 14, 2023, 9:12 a.m.