Skip to content
Prev 78197 / 398502 Next

R and Data Storage

rab45+ at pitt.edu wrote:
What I use is the facilities in the Hmisc package, which handles 
variable labels and units of measurement and has functions for importing 
data (saving labels in the appropriate place) and making use of the 
attributes (e.g., combining labels and units with a smaller font for the 
units portion in an axis label).  When such an annotated data frame is 
saved using save(...., compress=TRUE), load()'ing it back will provide 
an annotated data frame, quickly.  The contents( ) function can show the 
attributes, and we use html(contents( )) to put up a web page with 
hyperlinks for value labels (factor variable levels attribute).