Skip to content
Prev 12602 / 398502 Next

[ -R] Summary converting among modes

Thank you very much for the response.
The way to get rid of those pesky characters is to first convert to
character (from the default factor), THEN convert to numeric. I had tried
using as.is= in read.table, but I used it incorrectly (as.is=TRUE instead of
as.is= <vector of col indices>).

as.numeric( as.character( vect.dat ) )
NOT simply    as.numeric(vect.dat)

I used as.is= incorrectly. I simply used as.is=TRUE, and did not specify
----- Original Message -----
From: "Thomas Lumley" <tlumley at u.washington.edu>
To: "Martin Henry H. Stevens" <hstevens at muohio.edu>
Cc: <r-help at stat.math.ethz.ch>
Sent: Friday, July 27, 2001 1:47 PM
Subject: Re: [R] converting among modes
variables
as.numeric(),
When
message
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._