November 2018
Beginner to intermediate
354 pages
6h 59m
English
Suppose we have a CSV file with a location (in longitude and latitude values) and we want to import it into R and make a ppp object. Doing so is relatively straightforward—we need to point toward the longitude (x coordinates) and latitude (y coordinates) values column of the CSV and then use them in ppt() as we have done previously. We need to be mindful about the window, so that we don't drop any points.
We have a CSV file, ppp1, with the lon column containing longitude values and the lat column containing latitude values. We'll use min() and max() to get the minimum and maximum values of longitude and latitude for defining the window containing these values in the following way:
# Please update the ...
Read now
Unlock full access