search for: diffd

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

Did you mean: diff
2011 Jul 12
1
Subsetting NaN values in localG()
Hi, I'm currently trying to calculate local Getis-Ord Gi* statistics for a 169x315 cell matrix of temperature values, below is the code I currently have (diffc is the data vector I am removing NaN values from, and I am moving said values to diffD; -999 represents NaN values; id contains ID values for cells I want to use in the calculation, which I already know to contain 25064 values): /counter = 1 diffD = array(0,25064) id = array(0,25064) for(i in 1:53235){ if(diffc[i]!=-999){ diffD[counter] = diffc[i] id[counter] = i count...