tialPoints.html'>SpatialPointsDataFrame</a></span><span class='op'>(</span>coords <span class='op'>=</span> <span class='va'>occ</span><span class='op'>[</span>, <span class='fl'>2</span><span class='op'>:</span><span class='fl'>3</span><span class='op'>]</span>, data <span class='op'>=</span> <span class='va'>occ</span>,
                                     proj4string <span class='op'>=</span> <span class='va'>WGS84</span><span class='op'>)</span>

<span class='co'># reprojecting for measuring distances</