Displaying 1 result from an estimated 1 matches for "nupper".
Did you mean:
upper
2005 Apr 15
2
abbreviate or wrap dimname labels
..."), USE.NAMES = FALSE)
But, my attempt to use strwrap in my context gives a single string
for each set of dimension names:
> stack.lab <-function(x) { paste(strwrap(x,10), collapse = "\n") }
> lapply(lab, stack.lab)
$OccFather
[1] "Upper\nnonmanual\nLower\nnonmanual\nUpper\nmanual\nLower\nmanual\nFarm"
$OccSon
[1] "Upper\nnonmanual\nLower\nnonmanual\nUpper\nmanual\nLower\nmanual\nFarm"
For my particular example, I can do what I want with gsub, but it is
hardly general:
> lab[[1]] <- gsub(" ","\n", lab[[1]])
> lab[[2]]...