I don’t quite understand what needs to be encoded for the "habitat" component of the upload_land function.
In my case, I have as data file 30 raster(.tif) that I converted into vector (shapefile). Normally, I projected them in spatial coordinate and they contain as a first column, a habitat column that contains the information of the 12 habitat classes present. However, the 30 shapefiles do not necessarily have the 12 different classes of habitat. For example, they can have only 8/12 classes of habitat.
And I thought that the "habitat" component of the "upload_land" function should indicate the number of habitat classes. So I noted:
landscape <- upload_land(f1, bound_path = NULL,habitat = 1:12, max_dist = 500)
But I get an error message saying that I have less than 2 classes and that the cluster cannot be done.
I don’t quite understand what needs to be encoded for the "habitat" component of the upload_land function. In my case, I have as data file 30 raster(.tif) that I converted into vector (shapefile). Normally, I projected them in spatial coordinate and they contain as a first column, a habitat column that contains the information of the 12 habitat classes present. However, the 30 shapefiles do not necessarily have the 12 different classes of habitat. For example, they can have only 8/12 classes of habitat. And I thought that the "habitat" component of the "upload_land" function should indicate the number of habitat classes. So I noted: landscape <- upload_land(f1, bound_path = NULL,habitat = 1:12, max_dist = 500) But I get an error message saying that I have less than 2 classes and that the cluster cannot be done.
What should be indicated in this case?
Thanks