as_ldat: Convert r-objects to 'ldat"s

Description Usage Arguments Value Examples

Description

Convert r-objects to ldat's

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
as_ldat(x, ...)

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

## Default S3 method:
as_ldat(x, ...)

## S3 method for class 'ldat'
as_ldat(x, ...)

Arguments

x

object to convert

...

further arguments passed to or from other methods

Value

Returns a ldat with columns corresponding to the columns in x. When x is not a data.frame it is first converted to a data.frame using a call to as.data.frame.

Examples

1
2
a <- data.frame(a = 1:10, b = rnorm(10))
b <- as_ldat(a)

ldat documentation built on May 2, 2019, 4:22 a.m.