I have this table here in R.
It's called d and the results are:
V1 V2 V3 V4 V5 V6 V7 V8
1 testtest_no_2nd 14.06863 11.50424 333173.1 0.0 0.00000 NaN 0.00
2 testtest1_no_2nd 14.50265 11.89501 387709.7 54536.6 0.43402 125654.6 NaN
3 testtest2 14.55234 11.95746 402124.0 14414.3 0.04969 290084.5 164429.95
4 testtest3 14.78606 12.14149 453059.3 50935.3 0.23372 217933.0 -72151.53
5 testtest4 15.16970 12.51004 496142.1 43082.8 0.38364 112300.1 -105632.92
What i need is that first i need to convert the Nan Values into 0 and then i need to delete the first element of the V8 Vector and add a 0 value at the end. I would be now
V8
0.00
164429.95
-72151.53
-105632.92
After that i need to remove all rows of the d table that have a V8<0
Someone help me with that? Thanks.