What is faster - a matrix, raster or a dataframe?

المشرف العام

Administrator
طاقم الإدارة
I have rasters over which I am performing mathematical operations. For example, where I need to calculate flow distance or distance between two grid points.

What format is generally considered faster for such operations?

Should I work directly on the raster format, instead?

I also converted the data to matrix and dataframe

as.matrix and as.data.frame

The raster has entirely numeric values.Not sure which is faster. I am new to raster package in R, and I have mostly only worked in dataframes.



أكثر...
 
أعلى