Displaying 1 result from an estimated 1 matches for "xxframe".
Did you mean:
wxframe
2011 Jan 30
1
Extract subsets of different and unknown lengths from huge dataset
...corrected_data.txt"),header=T)
> nrow(xx1)
[1] 2500000
> start1 <- data.frame(start=rep("NA",length.out=nrow(xx1)))
> stop1 <- data.frame(stop=rep("NA",length.out=nrow(xx1)))
> max.xx1 <- data.frame(max.xx=rep("NA",length.out=nrow(xx1)))
> XXframe <- data.frame(XX=xx1, start=start1, stop=stop1, max.xx=max.xx1)
> attach(XXframe)
> for(i in 1:(nrow(XX)-25)){
+ start[i+24] <- ifelse(XX[i:(i+23)]==0 && XX[i+24]>0, "start", "NA")
+ }
But this doesn't work - and every time I try it again, after chan...