Displaying 1 result from an estimated 1 matches for "targrow".
Did you mean:
narrow
2013 Apr 14
1
possible loop problem
...2 11 13
> > 4
4 4 9
4 6 2
4 7 3
4 21 1
4 23 58
4 25 9
4 26 4
> > 11
11 1 12
> > 21
21 4 1
21 11 3
(actually, I have to do something else with that value by
appending a piece of text in front, but you get the idea). So far, my
idea was to try:
for (i in 1:(length(targrow)-1)) {
label <- test2[targrow[i],3]
start <- targrow[i]+1
end <- targrow[i+1]-1
test2[start:end,1] <- label
}
where test2 is the read, delimited matrix (verified the columns
and such are properly formatted), and targrow was a vector I generated,
searching the main table to iden...