as_ldat: Convert r-objects to 'ldat"s

View source: R/as_ldat.R

as_ldatR Documentation

Convert r-objects to ldat's

Description

Convert r-objects to ldat's

Usage

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

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


djvanderlaan/lvec_stats documentation built on Oct. 4, 2022, 7:02 p.m.