search for: nnonmanual

Displaying 1 result from an estimated 1 matches for "nnonmanual".

2005 Apr 15
2
abbreviate or wrap dimname labels
...10), collapse = "\n"), 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",...