[R] as.double( factor(something) )??
    Prof Brian Ripley 
    ripley at stats.ox.ac.uk
       
    Wed Nov 19 20:23:16 CET 2003
    
    
  
It's in the FAQ, Q7.12.
On Wed, 19 Nov 2003, RenE J.V. Bertin wrote:
> After converting a numeric variable into a factor, is there a way to convert it back to the original values? as.double() doesn't do that correctly, for evident reasons (I guess) and as shown below.
-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595
    
    
More information about the R-help
mailing list