<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Dear RS-ecology community,</div><div><div><div id="gmail-m_-7350267937432995941gmail-tw-target"><div id="gmail-m_-7350267937432995941gmail-kAz1tf"><div id="gmail-m_-7350267937432995941gmail-tw-target-text-container"><pre id="gmail-m_-7350267937432995941gmail-tw-target-text" style="text-align:left" dir="ltr"><span lang="en">I am practicing with the exercises proposed in the book.<br></span></pre><pre id="gmail-m_-7350267937432995941gmail-tw-target-text" style="text-align:left"><span lang="en">At page 178<br></span></pre><pre id="gmail-m_-7350267937432995941gmail-tw-target-text" style="text-align:left"><span lang="en"><span lang="en">launching the command</span></span></pre><pre id="gmail-m_-7350267937432995941gmail-tw-target-text" style="text-align:left"><span lang="en">p224_r63_2011.kmeans <- kmeans (p224r63_2011_sub[], centers =5, iter.max = 100, nstart = 10)<br><br></span></pre><pre id="gmail-m_-7350267937432995941gmail-tw-target-text" style="text-align:left"><span lang="en">i receive the error<br><br>Error in do_one(nmeth) : <br>  NA/NaN/Inf <code><span class="gmail-kwd">in</span><span class="gmail-pln"> foreign </span><span class="gmail-kwd">function</span><span class="gmail-pln"> call</span></code> (arg 1)<br><br></span></pre><pre id="gmail-m_-7350267937432995941gmail-tw-target-text" style="text-align:left"><span lang="en">I loaded the raster from data_book/raster_data/final/p224r63_2011.grd with the command brick as shown in the book<br></span></pre><pre id="gmail-m_-7350267937432995941gmail-tw-target-text" style="text-align:left"><span lang="en">and then i launched the command p224r63_2011_sub <- p224r63_2011[[c(1:4]]<br><br></span></pre><pre id="gmail-m_-7350267937432995941gmail-tw-target-text" style="text-align:left"><span lang="en">any solutions?<br></span></pre><pre id="gmail-m_-7350267937432995941gmail-tw-target-text" style="text-align:left"><span lang="en">Best regards,<br></span></pre><pre id="gmail-m_-7350267937432995941gmail-tw-target-text" style="text-align:left"><span lang="en">Danilo Procaccini</span></pre></div></div></div></div></div><pre class="gmail-lang-r gmail-prettyprint gmail-prettyprinted"></pre></div></div></div>