as.lgtdl {lgtdl} | R Documentation |
Longitudinal Class
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
as.lgtdl(x, row.names=NULL)
is.lgtdl(x)
Arguments
x |
An object which is coerced to a |
row.names |
An optional set of row names to be used for the names
of the covariates in the resulting |
Value
is.lgtdl |
Returns |
as.lgtdl |
Returns an object of class |
Author(s)
Robert Gentleman
See Also
Examples
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)
[Package lgtdl version 1.1.5 Index]