[R] Numeric Coerceing
    Marc Schwartz 
    mschwartz at medanalytics.com
       
    Fri Feb 14 16:07:03 CET 2003
    
    
  
>-----Original Message-----
>From: r-help-admin at stat.math.ethz.ch 
>[mailto:r-help-admin at stat.math.ethz.ch] On Behalf Of Wayne Jones
>Sent: Friday, February 14, 2003 8:20 AM
>To: r-help at stat.math.ethz.ch
>Subject: [R] Numeric Coerceing
>
>
>Does anyone know how to coerce a numeric to a string??
>
>THanks
>
>Wayne
See ?as.character
For example:
> y <- 123
> y
[1] 123
> as.character(y)
[1] "123"
Regards,
Marc Schwartz
    
    
More information about the R-help
mailing list