BaşlayınÜcretsiz Başlayın

What's a raster object?

Just like sp classes, the raster classes have methods to help with basic viewing and manipulation of objects, like print() and summary(), and you can always dig deeper into their structure with str().

Let's jump in and take a look at a raster we've loaded for you, pop. Keep an eye out for a few things:

  • Can you see where the coordinate information is kept?
  • Can you tell from the summary() how big the raster is?
  • What do you think might be stored in this raster?

Bu egzersiz

Visualizing Geospatial Data in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Print pop to the console.
  • Call str() on pop with max.level = 2.
  • Call summary() on pop.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

library(raster)

# Print pop


# Call str() on pop, with max.level = 2


# Call summary on pop
Kodu Düzenle ve Çalıştır