Extract.factor: Extract or Replace Parts of a Factor
Description
Extract or replace subsets of factors.
Usage
# S3 method for factor
[(x, …, drop = FALSE)
# S3 method for factor
[[(x, …)
# S3 method for factor
[(x, …) <- value
# S3 method for factor
[[(x, …) <- value
# NOT RUN {## following example(factor)(ff <- factor(substring("statistics", 1:10, 1:10), levels = letters))
ff[, drop = TRUE]
factor(letters[7:10])[2:3, drop = TRUE]
# }