Learn R Programming

ldat (version 0.3.3)

as_ldat: Convert r-objects to ldat's

Description

Convert r-objects to ldat's

Usage

as_ldat(x, ...)

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

# S3 method for default as_ldat(x, ...)

# S3 method for 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

Run this code
# NOT RUN {
a <- data.frame(a = 1:10, b = rnorm(10))
b <- as_ldat(a)

# }

Run the code above in your browser using DataLab