<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<p>Hello everyone!</p>
<p>I am trying to analyze SpatialData with adehabitatHR in R. I ran into problems trying to subset my data for the analsis. First of all my raw data had this format. The Dataframe is called "locs":</p>
<pre><code>AnID X Y</code></pre>
<p><code>1 Ind7 408046.3 5508986 </code></p>
<p><code>2 Ind7 407445.4 5508927 </code></p>
<p><code>3 Ind7 407588.2 5508927 </code></p>
<p><code>4 Ind7 407595.9 5508819 </code></p>
<p><code>5 Ind7 408079.9 5508904 </code></p>
<p>It contains the coordinates for seven different animals (Ind1-Ind7). When i turned it into Spatialpixeldataframe and used the <code>head(locs)</code> command I got this:</p>
<pre><code> AnID</code></pre>
<p><code>1 Ind7 </code></p>
<p><code>2 Ind7 </code></p>
<p><code>3 Ind7 </code></p>
<p><code>4 Ind7 </code></p>
<p><code>5 Ind7 </code></p>
<p><code>6 Ind7</code></p>
<p>So as you can see all the coordinates are gone. I try to subset the data so that only the rows of Ind3 are available.</p>
<pre><code>Animal3 <- locs[as.data.frame(locs)[,1]=="Ind3",]</code></pre>
<p>When i plot this data i can see all 75 locations perfectly but when i use the following command i get an error:</p>
<pre><code>kernelUD(Indi3, h=293, grid=ab)</code></pre>
<p>The error says: Error in <code>kernelUD(Indi3, h = 293, grid = ab)</code> : At least 5 relocations are required to fit an home range</p>
<p>Thank you very much in advance!</p>
</div></div></body></html>