p-boun...@r-project.org] On Behalf Of Saif Tauheed
Sent: Tuesday, April 10, 2018 12:49 PM
To: Eric Berger <ericjber...@gmail.com>
Cc: r-help@r-project.org
Subject: Re: [R] convert numeric variables to factor
Thank you very much.
After that I have the following error:
cols<- c("Gr
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Saif Tauheed
> After that I have the following error:
>
> cols<- c("GrMM", "RELG", "CASTE1", "SECTOR", "SECTOR4","AGE", "MARITAL",
> "JOBSTATUS", "ENG", "EDU", "PARENT_EDU", "MASSMEDIA_F",
> "MASSMEDIA_M", "HomeComputer",
pe this helps,
Rui Barradas
On 4/9/2018 6:11 PM, David L Carlson wrote:
Try the help files:
?factor
David L Carlson
Department of Anthropology
Texas A University
College Station, TX 77843-4352
-Original Message-
From: R-help <r-help-boun..
you tried to run the code you haven't posted without coercing to
> > factor? It might run...
> >
> > Hope this helps,
> >
> > Rui Barradas
> >
> > On 4/9/2018 6:11 PM, David L Carlson wrote:
> >> Try the help files:
> >> ?factor
> &g
/2018 6:11 PM, David L Carlson wrote:
> >> Try the help files:
> >> ?factor
> >>
> >> David L Carlson
> >> Department of Anthropology
> >> Texas A University
> >> College Station, TX 77843-4352
> On 4/9/2018 6:11 PM, David L Carlson wrote:
>> Try the help files:
>> ?factor
>> ------------
>> David L Carlson
>> Department of Anthropology
>> Texas A University
>> College Station, TX 77843-4352
>> -Original M
Cool William i'm 100 sure you and me we can have a good time together. Just
trust me okey.. Am not an escort ok so plz dont think me like that.
I just need you to prove you are not minor and safe.
My friends also here with me while am writing you. If you can come now you
can ride us both.
i am seriously meet up with you. if you're interested in getting to know me
Then sent me about your details . William Im really serious!
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
f Saif Tauheed
Sent: Monday, April 9, 2018 11:29 AM
To: r-help@r-project.org
Subject: Re: [R] convert numeric variables to factor
Dear Sir,
I have xlsx data set which I have imported to R studio. Now some of the
variables are defined as numeric but I want define them as factor variable so
that
Or use cut():
> Num <- c(2.2, 2.4, 3.5, 5, 7)
> cut(Num, breaks=c(0,2,4,6), labels=c("Low","Medium","High"))
[1] Medium Medium Medium High
Levels: Low Medium High
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Mon, Apr 9, 2018 at 10:00 AM, Bert Gunter wrote:
>
see also ?cut if this is what you mean.
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Apr 9, 2018 at 9:28 AM, Saif Tauheed
Just cast it!
?factor
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Apr 9, 2018 at 9:28 AM, Saif Tauheed wrote:
> Dear Sir,
>
>
:29 AM
To: r-help@r-project.org
Subject: Re: [R] convert numeric variables to factor
Dear Sir,
I have xlsx data set which I have imported to R studio. Now some of the
variables are defined as numeric but I want define them as factor variable so
that I run classification algorithm in R.
Dear Sir,
I have xlsx data set which I have imported to R studio. Now some of the
variables are defined as numeric but I want define them as factor variable so
that I run classification algorithm in R.
Please to covert the variables.
Thanks and Regards
Abu Afzal
PhD Eco
JNU
India
14 matches
Mail list logo