[RS-ecology] Problems with kmeans

Danilo Procaccini danilo.procaccini at gmail.com
Thu Oct 31 18:04:51 CET 2019


Dear RS-ecology community,

I am practicing with the exercises proposed in the book.

At page 178

launching the command

p224_r63_2011.kmeans <- kmeans (p224r63_2011_sub[], centers =5,
iter.max = 100, nstart = 10)

i receive the error

Error in do_one(nmeth) :
  NA/NaN/Inf in foreign function call (arg 1)

I loaded the raster from data_book/raster_data/final/p224r63_2011.grd
with the command brick as shown in the book

and then i launched the command p224r63_2011_sub <- p224r63_2011[[c(1:4]]

any solutions?

Best regards,

Danilo Procaccini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-wuerzburg.de/pipermail/rs-ecology/attachments/20191031/0636628a/attachment.html>


More information about the RS-ecology mailing list