is.smooths.frame: Tests whether an object is of class smooths.frame

is.smooths.frameR Documentation

Tests whether an object is of class smooths.frame

Description

A single-line function that tests whether an object is of class smooths.frame.

Usage

is.smooths.frame(object)

Arguments

object

An object to be tested.

Value

A logical.

Author(s)

Chris Brien

See Also

validSmoothsFrame, as.smooths.frame

Examples

dat <- read.table(header = TRUE, text = "
Type TunePar TuneVal Tuning Method       ID  DAP   PSA      sPSA
NCSS      df       4   df-4 direct 045451-C   28 57.446 51.18456
NCSS      df       4   df-4 direct 045451-C   30 89.306 87.67343
NCSS      df       7   df-7 direct 045451-C   28 57.446 57.01589
NCSS      df       7   df-7 direct 045451-C   30 89.306 87.01316
")
dat[1:7] <- lapply(dat[1:7], factor)
dat <- as.smooths.frame(dat, individuals = "ID", times = "DAP")
is.smooths.frame(dat)
validSmoothsFrame(dat)

growthPheno documentation built on Oct. 24, 2023, 5:08 p.m.