Skip to content

Transformation of Variables

3 messages · Arup, David Winsemius, jim holtman

#
I have a data frame in R  where all the variables are character in nature.
kindly let know how I can transform these character variable into say
"numeric","Categorical","continuous" etc.Please provide me with the proper
syntax. Thank you in advance.
#
There are a series of coercion functions, all beginning with "as."  
which are designed to return (when possible) objects of specified  
types. Since you offer three examples, only one of which I recognize  
as a valid R type, I am wondering what R text you have been using?
#
It would be useful to have some sample input data and then what you
expect as output.  You can always convert the characters to factors
and then use the integer values assigned.
On Mon, Feb 16, 2009 at 2:00 AM, Arup <arup.pramanik27 at gmail.com> wrote: