Re: [R] Splitting variables

2009-03-16 Thread jim holtman
y <- x[x<600] z <- x[x>=600] 2009/3/16 Rickard Grönholm : > Dear R Users,I have a data set with several variables. One of these > variables is the number of farms per county and I'd like to split this > variable into two domains: (a) counties with fewer than 600 farms and (b) > counties with 600 o

[R] Splitting variables

2009-03-16 Thread Rickard Grönholm
Dear R Users,I have a data set with several variables. One of these variables is the number of farms per county and I'd like to split this variable into two domains: (a) counties with fewer than 600 farms and (b) counties with 600 or more farms I've tried solving this problem for hours, but I'm new