hey, I want to divide my data into three groups based on the value in one
column with group name.

dat:

Var
0
0.2
0.5
1
4
6

I tried:

dat <- cbind(dat, group=cut(dat$Var, breaks=c(0.1,0.6)))

But it doesnt work, I want to group those <0.1 as group A, 0.1-0.6 as group
B, >0.6 as group C

Thanks for your help!

	[[alternative HTML version deleted]]

