getTimePoints: Extract time points

View source: R/getTimePoints.R

getTimePointsR Documentation

Extract time points

Description

Function for extracting a data.frame with timeNumbers and timePoints from an object of class TP or fitMod.

Usage

getTimePoints(x)

Arguments

x

An object of class TP or fitMod

Value

A data.frame with columns timeNumber and timePoint listing the time points in x

See Also

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

Examples

## Create an object of class TP.
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"))

## Extract the time points from the object.
head(getTimePoints(phenoTP))


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