Re: [Rd] factor() on a double vector
On 02/23/2011 12:09 PM, Simon Urbanek wrote: Herve, the answer is simple - it's as.character() - it has nothing to do with factor or table. as.character(x) [1] "3.67" "3.67" "3.66" "3.67" That's what you are passing to factor, so you get the c
Re: [Rd] factor() on a double vector
Herve, the answer is simple - it's as.character() - it has nothing to do with factor or table. > as.character(x) [1] "3.67" "3.67" "3.66" "3.67" That's what you are passing to factor, so you get the corresponding results. Cheers, Simon On Feb