I have a raster file (10*10). It has 3 columns and 4 rows. I have a column Count that gives me number of cells in each row class (0,1,2,3). I want to get area of this raster in R. I ma thinking of adding the cell counts and then multiply by 100 to get area in square meters. I tried using area(rastername) but got an error saying Warning message: In .local(x, ...) : This function is only useful for Raster* objects with a longitude/latitude coordinates.
Can anyone help me with this ?