Displaying 1 result from an estimated 1 matches for "fixedsub".
Did you mean:
fixedstr
2005 Nov 07
1
reduce levels
Hi all:
I have an example that shows my problem:
> test <- data.frame(c("a", "b", "c"))
> colnames(test) <- "mm"
> sub <- subset(test, mm=="b")
> sub$mm
[1] b
Levels: a b c
> levels(sub$mm)
[1] "a" "b" "c"
How can I reduce the levels to exclusively those which