Learn R Programming

define (version 0.2.9)

as.labeled.data.frame: Coerce data.frame to labeled.

Description

Coerces data.frame to labeled.

Usage

# S3 method for data.frame
as.labeled(x, label, spec, check = TRUE, ...)

Arguments

x

data.frame

label

a SAS-style label for x

spec

a spec (specification) data.frame containing column labels

check

should the data.frame be required to match its specification?

...

ignored

Details

Positive numeric values less than 1e-70 are coerced to zero to solve SAS encoding issues. Column names are forced unique and forced SAS-compliant with link{makesasnames}. Labels are added to the data.frame column names, and to the data.frame itself.

See Also

as.labeled.character