Skip to content
Back to formatted view

Raw Message

Message-ID: <CAM_vju=nYQm99wWRWRjMRBodFnp5RFk4vsFJDzS=Jc9mADF7cQ@mail.gmail.com>
Date: 2019-09-12T16:06:21Z
From: Sarah Goslee
Subject: Area calculation of forest cover classes.
In-Reply-To: <CAC4+n+wO3pG8L6PgzZH8Sf2VbkM8JM1L8HFhOmHt-3tcaEMshQ@mail.gmail.com>

Hi,

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().

Sarah

On Thu, Sep 12, 2019 at 3:30 AM Enoch Gyamfi Ampadu <egampadu at 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)
http://www.numberwright.com