Hi,
c( factor( 'a'), ( 1))
[1] 1 1
c( factor( 'a'), factor( 1))
[1] 1 1
c( factor( 'a'), factor( 'b'))
[1] 1 1
unlist( list( factor( 'a'), 1))
[1] 1 1
unlist( list( factor( 'a'), factor( 1)))
[1] a 1
Levels: a 1
unlist( list( factor( 'a'), factor( 'b')))
[1] a b
Levels: a b
In an
This is definitely not an error, all these behaviours are by design. You need
to (re)read the description of factors in the Introduction to R document that
comes with the software. Factors are not optimized versions of strings, they
are finite sets of category information designed for use in
2 matches
Mail list logo