I just found out about the label function in the Hmisc package. However, as far as I can see, this function does not solve my problem, since axis labels still need to be specified manually as xlab=label(var).
I do not see any solution for creating good tables (xxtable). Are there any packages that I don't know about that provide such functionality? In general, I would like to do the following:
- attach labels and units to variables, columns:
label(wght) <- weight; unit(var) <- 'kg' - print them beautifully, for example:
wght <- c(20, 30); printnice(mean(wght)) -> '25 kg' - make graphics, use these bright shortcuts automatically
source
share