Displaying 1 result from an estimated 1 matches for "hgblt10points2008".
2010 Jul 23
1
FW: recoding problem
...rom 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
Here is the code I am using to recode it:
HGBlt10Points2008 = recode(HGlt10RawPerc ,"-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 ")
The output that I am expecting and what I get are:
What it should be
The output of
my code
10
10
10
10
10
10
10
10
10
8*
6
6
6
4*
10
10
10
10
10
10
6
1...