print.fctr: Print Values

Description Usage Arguments Details Author(s) See Also Examples

Description

An extension of print.factor for objects of class 'fctr'

Usage

1
2
## S3 method for class 'fctr'
print(x, quote = FALSE, max.levels = NULL, width = getOption("width"), ...)

Arguments

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.

Details

see help on print

Author(s)

Thomas Fabbro <thomas.fabbro@unibas.ch>

See Also

print

Examples

 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)

thofab/fctr documentation built on Nov. 5, 2019, 10:07 a.m.