Learn R Programming

define (version 0.2.9)

as.labeled: Coerce to class labeled.

Description

Coerces to class labeled.

Coerces character to a labeled data.frame.

Usage

as.labeled(x, ...)

# S3 method for character as.labeled( x, spec, as.is = TRUE, na.strings = c("", "."), rename = function(x, ...) x, ... )

Arguments

x

length-one filename for csv-formatted data file

...

passed to as.labeled.dat

spec

length-one file name for spec

as.is

passed to read.csv

na.strings

passed to read.csv

rename

a function with arguments x, ... to pre-process column names

Methods (by class)

  • character: data.frame method for as.labeled

See Also

as.labeled.data.frame