[R] Cut including the 0 value as separate bin
LCOG1
jroll at lcog.org
Tue Oct 26 23:01:26 CEST 2010
Hi everyone,
I have been using R too long to have to ask this but here i am. How do i
create a separate bin for the 0 value? So for:
#Create data frame
DF<-data.frame(A=0:20)
#Create label vector
labs<-1:6
#Create buckets and label
DF$Cut<-cut(DF$A,c(0,4,8,12,14,16,20),labels=labs,include.lowest=TRUE)
I want the 0(zero) value to be in a separate bin.
Sorry for the lame post...
Thanks guys.
JR
--
View this message in context: http://r.789695.n4.nabble.com/Cut-including-the-0-value-as-separate-bin-tp3014503p3014503.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list