Displaying 1 result from an estimated 1 matches for "likedata".
Did you mean:
libedata
2011 Aug 25
2
apply function to spatial grid data frame to calculate CTI
...called data for example.data has a variable named "slope" and "uparea"
Basically, I need to calculate the tan(data$slope)Next, I need to divide data$uparea by data$slope and take the log() of that all
In the basic examples I found how to make simple multiplications with a scalar likedata[["slope"]] = data[["slope"]]/2 # assigns new attribute
I come from a background in GIS and fortran, so used to dealing with ordinary matrices, I'll admit I'm having trouble with understanding the format of this spatial grid data frame structureI've been trying differ...