https://github.com/cran/Hmisc
Revision 288a6220b956d91fff5bd3cdc5eb883d53ebe1bd authored by Charles Dupont on 10 January 2006, 13:38:31 UTC, committed by cran-robot on 10 January 2006, 13:38:31 UTC
1 parent df80191
Tip revision: 288a6220b956d91fff5bd3cdc5eb883d53ebe1bd authored by Charles Dupont on 10 January 2006, 13:38:31 UTC
version 3.0-9
version 3.0-9
Tip revision: 288a622
data.frame.labelled.s
## For every object in a data frame that has a 'label' attribute, make it
## class 'labelled'
data.frame.labelled <- function(object)
{
for(n in names(object))
if(length(attr(object[[n]],'label')))
attr(object[[n]],'class') <- c('labelled',attr(object[[n]],'class'))
object
}
Computing file changes ...