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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.