Re: [R] Rows classification problem

2010-03-04 Thread Jorge Ivan Velez
Hi Carlos, Take a look at ?cut, ?ifelse and ?transform for some ideas. Also, the function recode in car might help. HTH, Jorge On Thu, Mar 4, 2010 at 7:35 AM, Carlos Guerra <> wrote: > Dear all, > > I have a table like this: > > > a <- read.csv("test.csv", header = TRUE, sep = ";") > > a > >

Re: [R] Rows classification problem

2010-03-04 Thread Henrique Dallazuanna
Try this: a$pUrb_class <- cut(a$pUrb, c(-Inf, 20, 40, 60, Inf), labels = 1:4) On Thu, Mar 4, 2010 at 11:11 AM, Carlos Guerra wrote: > Dear all, > > I have a table like this: > > a <- read.csv("test.csv", header = TRUE, sep = ";") > a > >        UTM         pUrb                    pUrb_class > 1

[R] Rows classification problem

2010-03-04 Thread Carlos Guerra
Dear all, I have a table like this: a <- read.csv("test.csv", header = TRUE, sep = ";") a UTM pUrbpUrb_class 1 NF188520,160307 NA 2 NF188651,965649 NA 3 NF189326,009581 NA 4 NF1894 3,1414

[R] Rows classification problem

2010-03-04 Thread Carlos Guerra
Dear all, I have a table like this: > a <- read.csv("test.csv", header = TRUE, sep = ";") > a UTM pUrbpUrb_class 1 NF188520,160307 NA 2 NF188651,965649 NA 3 NF189326,009581 NA 4 NF1894 3