Displaying 1 result from an estimated 1 matches for "frmes".
Did you mean:
frames
2008 Jun 27
2
change values in data frames
...1 i
1 i
1 c
2 i
2 c
2 c
2 i
2 i
...
10000
I would like ,for each level of cola and for x in colb:
-if colb[x]=="i" and colb[x-1] does not exist (first row in dataframes),
then replace colb[x] by "l"
-if colb[x]=="i" and colb[x-1]=="c" (previous row in data frmes), then
replace colb[x] by "l"
-if colb[x]=="i" and colb[x-1]=="i" (previous row in data frmes), then
replace colb[x] by "h"
Thanks in advance
Paul
--
View this message in context: http://www.nabble.com/change-values-in-data-frames-tp18151205p18151205.html...