Skip to content
Prev 2329 / 29559 Next

map algebra with ascii grid

Dear R Users,

could you please advise me on doing map algebra with spatial grids? It's 
the first time I am using spatial objects in R. I have imported an ascii 
grid file and wanted to round the values in it or sum with a value, but it 
gives an error message:
Error in x + 3 : non-numeric argument to binary operator
Error in round(x, digits) : Non-numeric argument to mathematical function

Thank you for any suggestions.

Best wishes,

Michal