Every once in awhile I need to do this, create an empty raster layer that I will then put something into. However, I only do this from time to time and usually have to go digging to learn how to do it all over again.
Creating an empty raster.
This uses the raster package. To create a new raster there are a few parameters that are essential:
- The number of cells (as specified by the number of rows and columns) – remember that rasters are square even if the image stored in them is not.
In a previous post I used SuperLearner for Predictive Mapping. Here following guidance from Hefin Rhys’ youtube tutorial and some scripting made available by Tomislav Hengl of OpenGeoHub. I will demonstrate generating a ranger, random forest, model to predict multiclass and probability of each class. Data is currently closed but I hope to make it open down the road.
The mlr package (machine learning in r), is a package that acts as a wrapper for numerous machine learning algorithms.
Recently I had the opportunity to attend a machine learning workshop hosted by the provincial BEC Team in Victoria, BC. and led by Tom Hengl of the OpenGeoHub Foudation. During this workshop we worked through various R machine learning packages. I learned some great new skills. The challenge really came down to taking time to understand all the steps – and then to apply it to my data / my projects.
Examining harvest impacts on CWD
Predictive Ecosystem Mapping