Displaying 1 result from an estimated 1 matches for "zraw".
Did you mean:
raw
2009 Jun 15
2
Bin Category Labels on Axis
...rt these using:
xRaw<-scan(".../Temp.txt")
yRaw<-scan(".../Cropland.txt")
and then designate cells with values of -9999 as NAs:
x<-ifelse(xRaw==-9999,NA,xRaw)
y<-ifelse(yRaw==-9999,NA,yRaw)
Then, I compile them into a 2 column data frame, and exclude the NA values:
zRaw<-data.frame(x,y)
z<-na.exclude(zRaw)
I am then left with data frame 'z' which is a refined list of data. Using
the 'cut' function, I assign each row into one of 69 different bins:
z$bins<-cut(z$x, breaks=c(-36:33), include.lowest=TRUE)
Each bin is now 1 degree Celsius wid...