This is another awesome map. Thank you for sharing your knowledge. If you're looking for more ideas, creating a map to identify the land uses of a country could be interesting.
Thank you for your kind words! I'm always looking for new ideas so thank you for sharing one with me! Is there a specific dataset on land use that you would like to see in my tutorial?
Hi Milos, thanks for the tutorial but with the current version of R the rgeoboundaries package is no longer being used. How do I go around this any other oackage I can use?
Hi, that's really annoying! Sorry that you are experiencing issues with the package. An alternative is to use the `raster` package. For example, if you wish to download level 2 administrative boundaries for Slovenia you can run: country_sf
Hey Milos, thank you for the insightful video. I encountered the error below using R Studio and Rstudio cloud: Warning in install.packages : package ‘rgeoboundaries’ is not available for this version of R As a result I could not create the object "country_sf". Could you have a solution?
Hi Joshua, that's a bummer. I haven't encountered this error yet. But an alternative is to use the `raster` package. For example, if you wish to download level 2 administrative boundaries for Slovenia you can run: country_sf
@@milos-makes-maps seemed to have solved the issue but I encountered another error when I tried to run the code: for (raster in raster_files) { This is the error message I got "Cannot preload entire working area of 397357488 cells with max_cells_in_memory = 3e+07. Raster values will be read for each feature individually | | 0%Error in `[.data.frame`(x, i, j, drop = drop) : undefined columns selected In addition: Warning message: In .exact_extract(x, sf::st_as_sf(y), ...) : Polygons transformed to raster CRS (EPSG:32633)"
You have to change the column name for admin level 2 because you are using `raster` instead of `rgeoboundaries`. Currently, it's `shapeName` but you should inspect `country_sf` to find the new name
Hello @humanist6256, I'm glad you found this helpful. 😊 It seems that you are getting an error because you are using an older version of the rgeoboundaries package. The current version is 0.1.0, which has a different syntax for the gb_adm2 function. You need to specify the country argument as a named parameter, like this: country_sf
@@milos-makes-maps Thank you for prompt response. I tried as per your suggestions, I installed the package. With no success :( May be I am missing something basic. ---------------------------------------------------------------------------------------------------------------- > country_sf country_sf
Hi guys, welcome to my new video! I included the link to the land cover data in the description box!
Fantastic video. I was trying to work on the same data with Python but you dismantled it here. Thank you a lot.
I'm happy that this video helped you continue working in R! ☺️
This is another awesome map. Thank you for sharing your knowledge. If you're looking for more ideas, creating a map to identify the land uses of a country could be interesting.
Thank you for your kind words! I'm always looking for new ideas so thank you for sharing one with me! Is there a specific dataset on land use that you would like to see in my tutorial?
Hi Milos, thanks for the tutorial but with the current version of R the rgeoboundaries package is no longer being used. How do I go around this any other oackage I can use?
Hi, that's really annoying! Sorry that you are experiencing issues with the package. An alternative is to use the `raster` package. For example, if you wish to download level 2 administrative boundaries for Slovenia you can run:
country_sf
Its great
Thank you!
Hey Milos, thank you for the insightful video. I encountered the error below using R Studio and Rstudio cloud:
Warning in install.packages :
package ‘rgeoboundaries’ is not available for this version of R
As a result I could not create the object "country_sf". Could you have a solution?
Hi Joshua, that's a bummer. I haven't encountered this error yet. But an alternative is to use the `raster` package. For example, if you wish to download level 2 administrative boundaries for Slovenia you can run:
country_sf
@@milos-makes-maps seemed to have solved the issue but I encountered another error when I tried to run the code: for (raster in raster_files) {
This is the error message I got
"Cannot preload entire working area of 397357488 cells with max_cells_in_memory = 3e+07. Raster values will be read for each feature individually
| | 0%Error in `[.data.frame`(x, i, j, drop = drop) :
undefined columns selected
In addition: Warning message:
In .exact_extract(x, sf::st_as_sf(y), ...) :
Polygons transformed to raster CRS (EPSG:32633)"
You have to change the column name for admin level 2 because you are using `raster` instead of `rgeoboundaries`. Currently, it's `shapeName` but you should inspect `country_sf` to find the new name
Can it be done for small area
Yes, of course, this tutorial is for small areas
@@milos-makes-maps I will be glad if you provide me with assistance when I got stuck
Hi Milos,
This is very helpful. I wanted to try myself, however i encountered error
> country_sf
Hello @humanist6256, I'm glad you found this helpful. 😊
It seems that you are getting an error because you are using an older version of the rgeoboundaries package. The current version is 0.1.0, which has a different syntax for the gb_adm2 function. You need to specify the country argument as a named parameter, like this:
country_sf
@@milos-makes-maps Thank you for prompt response.
I tried as per your suggestions, I installed the package. With no success :( May be I am missing something basic.
----------------------------------------------------------------------------------------------------------------
> country_sf country_sf
@@humanist6256 hmmm, and what is the version of rgeoboundaries that you have installed?