Displaying 4 results from an estimated 4 matches for "varlabs".
Did you mean:
varlab
2005 Nov 21
4
attributes of a data.frame
Dear all,
I noticed that a data.frame has four attributes:
- names
- row.names
- class
- variable.labels
While one can use the first three (i.e. names(foo) or class(foo)), the fourth
one can only be used via:
attributes(foo)$variable.labels
(which is kind of a tedious thing to type)
Is it or would be possible to simply use:
variable.labels(foo)
like the first three attributes?
I tried:
varlab
2005 Oct 07
1
returning a modified fix()-ed dataframe
Dear all,
In order to ease the transition from SPSS to R for some of my colleagues, I am
trying to create a function which would show the variables and their labels
(if those exist), using function "label" in package Hmisc.
A toy example would be this:
my.data <- data.frame(age=c(24,35,28), gender=c("Male", "Female", "Male"))
require(Hmisc)
2010 May 26
1
Custom axis function in lattice:::xyplot
...except get
the correct label. How do I get access to the factor level being plotted
in each panel within my custom axis function?
It may be easier to illustrate than explain, so here is a dummy example,
including a version of my custom axis function.
require(lattice)
## custom axis function
axis.VarLabs <- function(side, ...) {
if(isTRUE(all.equal(side, "top"))) {
M <- function(lims) min(lims) + (diff(lims) / 2)
xlim <- current.panel.limits()$xlim
panel.axis(side = side, outside = TRUE, at = M(xlim),
tck = 1, line.col = "black&...
2014 Aug 27
1
Re R CMD check checking in development version of R
...bal variables for data sets in a package".
I went to look at the Check results for one of my packages (analogue) on
CRAN: http://cran.r-project.org/web/checks/check_results_analogue.html
Under the r-devel build machines I'm seeing a lot of things like this:
Stratiplot.default : axis.VarLabs: no visible global function
definition for ?current.panel.limits?
Stratiplot.default : axis.VarLabs: no visible global function
definition for ?panel.axis?
Stratiplot.default : axis.VarLabs: no visible global function
definition for ?which.packet?
Stratiplot.default : axi...