as.lgtdl: Longitudinal Class

Description Usage Arguments Value Author(s) See Also Examples

View source: R/lgtdl.R

Description

as.lgtdl coerces its argument to class lgtdl if possible. is.lgtdl returns TRUE if its argument is of class lgtdl and FALSE otherwise.

Usage

1
2

Arguments

x

An object which is coerced to a lgtdl object for as.lgtdl or tested with is.lgtdl.

row.names

An optional set of row names to be used for the names of the covariates in the resulting lgtdl object.

Value

is.lgtdl

Returns TRUE if its argument is of class lgtdl.

as.lgtdl

Returns an object of class lgtdl.

Author(s)

Robert Gentleman

See Also

plot.lgtdl, lgtdl

Examples

1
2
3
4
5
6
7
  x1<-data.frame(time=c(1,3,5), cov=c(4,6,8))
  x2<-data.frame(time=c(11,13,15), interest=c(66,45,88))

  x1<-as.lgtdl(x1)
  x2<-as.lgtdl(x2)

  is.lgtdl(TRUE)

lgtdl documentation built on May 1, 2019, 8:47 p.m.

Related to as.lgtdl in lgtdl...