Let’s get started with some hands-on exercises and exploring some data! This exercise focuses on importing different vector data geometries from various data sources and getting used to simple feature data tables.
In the folder data, you can find the data files we prepped for all the exercises which rely on preexisting data sets. However, if you like to play around with your own data, feel free to do so! .
Load the administrative borders of Germany. Therefore, import the shapefile “GER_COUNTRY” from the respective folder and assign it to an object named “germany”.
Plot the newly created object.
The output in the console of the RStudio interface gives you already some information on the data you just loaded. You also see that the object “germany” appeared in your environment. Though, we will explore the data set a little bit closer.
Explore the data and answer the following questions:
Do you have an idea why there are 11 observations instead of only one, even though we expected a shapefile with a polygon of just Germany? Create a new object which contains only one observation holding information on area size and population of Germany.