as_ldat: Convert r-objects to 'ldat"s

Description Usage Arguments Value Examples

View source: R/as_ldat.R

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 March 26, 2020, 7:59 p.m.

Related to as_ldat in ldat...