i have a matrice M and i want to extract only rows where GWP_Max is positif and smaller than 1000 but it is given me this:!!!???
> M
   Policy.Number   GWP_Max
1        4001023       500
2        4001025       700
3        4001028       600
4        4001062    2335.1
5        6100001      2000
6     1060000006      1400
7     1060000009     77.19
8     1060000071  18898.88
9     1060000073 671.70015
10    1060000077  18898.88
11    1060000077  18898.88
12    1060000124  93541.87
> M[M[,2]> 0,]
      Policy.Number GWP_Max
NA               NA    <NA>
NA.1             NA    <NA>
NA.2             NA    <NA>
NA.3             NA    <NA>
NA.4             NA    <NA>
NA.5             NA    <NA>
NA.6             NA    <NA>
NA.7             NA    <NA>
NA.8             NA    <NA>
NA.9             NA    <NA>
NA.10            NA    <NA>
NA.11            NA    <NA>
Warning message:
In Ops.factor(M[, 2], 0) : > not meaningful for factors
> 
somebady help me please!!!

thank you a lot
Regards


      
	[[alternative HTML version deleted]]


