
SpatialPointsDataFrame
representing the centroid of each
population, with attributes: pop
(population name), time
(the
time step), and N
(the mean population size).
mp2sp(mp, coords, start, s_p4s, t_p4s)
mp2xy
start=1
, in which case 'time'
in the resulting shapefile's attribute table will refer to the timestep
number.coords
. These can be supplied as a CRS
object or as a proj4 string.CRS
object or as a proj4 string.SpatialPointsDataFrame
.
mp2xy
mp <- system.file('example.mp', package='mptools')
r <- system.file('example_001.tif', package='mptools')
coords <- mp2xy(mp, r, 9.975)
spdf <- mp2sp(mp, coords, start=2000)
spdf
Run the code above in your browser using DataLab