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

Description Usage Arguments Details See Also

View source: R/submission.R

Description

Coerces data.frame to labeled.

Usage

1
2
## S3 method for class '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


define documentation built on July 1, 2020, 6:25 p.m.