Skip to content
Back to formatted view

Raw Message

Message-ID: <498C3E83.2040500@idi.ntnu.no>
Date: 2009-02-06T13:43:31Z
From: Wacek Kusnierczyk
Subject: How to convert Charagter variables into numeric
In-Reply-To: <OF6B24454C.2F6F7316-ONC1257555.0041BED3-C1257555.0041BB6E@e-control.at>

if you use read.table for the import, reading about the colClasses
parameter in ?read.table may help.

vQ


> On Thu, 5 Feb 2009 22:50:38, <arup.pramanik27 at gmail.com> wrote:
>
>   
>> I am importing a dataset in R where some of the variable are numerical
>>     
> and
>   
>> some of them are character...but the problem is that R is treating
>> numerical variables as character (I am using "is.character" to judge the
>> type). Now the question is how can I convert these character variables
>>     
> into
>   
>> numeric and also let me know about the other conversion like "numeric to
>> categorical","numeric to continuous" etc.Thank you.
>>
>> Arup
>>