Re: [R] FW: recoding problem
Hi Tom, This seems to work like I'd expect: HGlt10RawPerc2008 <- read.table(textConnection(" -5 0 -1 -1 0 2 3 -5 -2 0 2 0 1 -2 3 0 4 1 4 2 ")) recode(HGlt10RawPerc2008 ,"-100:0.0 = 10; 0:1.0 = 8; 1.001:3.0 = 6; 3.001:4.0 = 4; 4.001:5.0 = 2; else = 0") I wonder if your data might n
[R] FW: recoding problem
Hi, I am trying to recode the output from a matrix(here is a small snippet of it): HGlt10RawPerc2008[1:20] [1] -5 0 -1 -1 0 2 3 -5 -2 0 2 0 1 -2 3 0 4 1 4 2 H