versity
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Jim Lemon
Sent: Monday, April 17, 2017 4:59 PM
To: prateek pande
Cc: r-help mailing list
Subject: Re: [R] Binning Data and Event rates
Hi Pateek,
Try this:
ppdat<-read.table(text="Values Churn
21
Hi Pateek,
Try this:
ppdat<-read.table(text="Values Churn
21 1
22 1
31.2 1
32 1
35 0
43 1
45 0
67 1
67 0
76 0
89 1",
header=TRUE)
ppdat$Valbin<-cut(ppdat$Values,breaks=c(20.9,43.7,66.3,89
I have a data, in the form mentioned below.
Values Churn
21 1
22 1
31.2 1
32 1
35 0
43 1
45 0
67 1
67 0
76 0
89 1
Now i want to bin the values variables into bins and corresponding that
want the ch
3 matches
Mail list logo