Skip to content
Prev 13689 / 398503 Next

How to change the levels of a variable???

On Fri, 21 Sep 2001, Ronaldo Reis Jr. wrote:

            
See ?levels and follow the link to ?"levels<-.factor"
[1] A B C
Levels:  A B C
[1] A D D
Levels:  A D

You could use
[1] A D D
Levels:  A D D

but as you see, that is not precisely the same thing.