Skip to content
Prev 68188 / 398502 Next

Assign factor and levels inside function

Wouldn't it be easier to do this?
[1] 1 1 3 3 5 7
attr(,"levels")
[1] 1 3 5 7 9

Andy