search for: rankeddataset

Displaying 1 result from an estimated 1 matches for "rankeddataset".

2008 Mar 26
3
Loop problem
...oblem with a loop, if anyone has any knowledge on these things I would appreciate some comments. The code below is designed to allow me to extract the top record of the data frame, and them remove rows from the data frame which have an index close to the extracted top record. topstorm<-subset(rankeddataset[1,]) ## Extracts the top storm topstormindex<-rankeddataset[1,1] ## Finds the top storm start index startindex<-topstormindex-48 ## sets the start and end indexes endindex<-topstorminde+48 rankeddataset<-rankeddataset[-1,] ## Creates a new list with the top storm removed ##This section...