Hi Enoch, Here is a book chapter that provides R scripts for using random forest to classify categorical data: 'Predicting seabed hardness using random forest in R' 2013.
- DOI: - 10.1016/B978-0-12-411511-8.00011-6. - In book: Data Mining Applications with R. - - Publisher: Elsevier. - Editors: Y. Zhao and Y. Cen If you are looking for further materials, the R package, spm, provides more advanced functions, including RFcv with an example for categorical data. Hope this helps. Kind regards, Jin On Tue, 13 Aug. 2019, 18:50 Enoch Gyamfi Ampadu, <egamp...@gmail.com> wrote: > Dear List, > > Please I am now learning R to apply to my analysis. I am doing a forest > cover classification using Random forest. So far I have stacked the image, > done atmospheric correction, and clipped out my study area. I have created > some training sites of the cover classes in ArcMap and imported into R as > well as the clipped image of my study sites. I have been doing try and > error with some online codes. I will be glad if you could provide me with > some codes to apply. > > Thank you. > > Best regards, > > Enoch > > -- > *Enoch Gyamfi - Ampadu* > > *Geography & Environmental Sciences* > > *College of Agriculture, Engineering & Science* > > *University of KwaZulu-Natal, Westville Campus* > > *Private Bag X54001* > *Durban, South Africa **– 4000**.* > *Phone: +27 835 828255* > > *email: egamp...@gmail.com <egamp...@gmail.com>* > > > *skype: enoch.ampadu* > *The highest evidence of nobility is self-control*. > > *A simple act of kindness creates an endless ripple*. > > [[alternative HTML version deleted]] > > _______________________________________________ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo