Description Usage Arguments Details Author(s) See Also Examples
An extension of print.factor for objects of class 'fctr'
1 2 |
x |
an object of class fctr. |
quote |
logical, indicating whether or not strings should be printed with surrounding quotes. |
max.levels |
integer, indicating how many levels should be printed for a factor; if ‘0’, no extra "Levels" line will be printed. The default, ‘NULL’, entails choosing ‘max.levels’ such that the levels print on one line of width ‘width’. |
width |
only used when ‘max.levels’ is NULL, see above. |
... |
further arguments passed to or from other methods. |
see help on print
Thomas Fabbro <thomas.fabbro@unibas.ch>
1 2 3 4 5 6 7 8 9 10 11 12 13 | f <- c("a", "b", "c", "a", "a")
l <- data.frame(orig = c("a", "b", "c", "d"),
lang1 = c("A", "B", "C", "D"),
lang2 = c("first", "second", "third", "last"),
order1 = c(5, 3, 4, 2),
order2 = c("z", "y", "x", "w"),
group1 =c("A", "B", "B", "B")
)
sf <- fctr(f, l)
use(sf, "lang2")
use(sf, "lang2", reorder = "order1")
use(sf, "lang2", drop = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.