Re: importData in S as numeric format
From: Leonid Gibiansky leonidg@metrumrg.com
Subject: Re: [NMusers] importData in S as numeric format
Date: Fri, 08 Sep 2006 12:00:34 -0400
To transform variable (value or vector) X from character mode to
numeric, you can use
as.double(X)
However it may sometimes lead to incorrect results if your X is a factor
instead of a character. Therefore, it is safer to use
as.double(as.character(X))
Leonid
_______________________________________________________