[R-sig-Geo] Area calculation of forest cover classes.

Sarah Goslee @@r@h@go@|ee @end|ng |rom gm@||@com
Thu Sep 12 18:06:21 CEST 2019


Without knowing any details of what you did, the general procedure is:

Use your fitted Random Forest or SVM model to predict the class for
each pixel in your region of interest - the predict() function.
Use standard spatial data methods to aggregate the resulting spatial
data, or even standard non-spatial methods, since you know the pixel
size - perhaps aggregate() or even table().


On Thu, Sep 12, 2019 at 3:30 AM Enoch Gyamfi Ampadu <egampadu using gmail.com> wrote:
> Dear List,
> Please I have carried out an RF and SVM forest cover classification in R. I
> want to determine the area in hectors for each of the forest cover classes.
> I have not been able to find my way out on it. I wanted to ask if it is
> possible to do this in R and will be glad to have assistance on how to
> carry that out. And possibly some lead codes to use (I am still learning R
> and and how to code.)
> Thank you.
> Best regards,
> Enoch

Sarah Goslee (she/her)

More information about the R-sig-Geo mailing list