Confused by cluster package -- clara()

Error in clara(df, k = i, correct.d = TRUE) : 
  C level dysta2(): nsel[k= 0] = 0 is outside 0..n, n=161

I found the error message here (previous version of the package source code, lines 341 to 346): cluster/src/clara.c at master · pimentel/cluster · GitHub

I tried to check with logging.
Code: cat(paste0('k = ', i, ' < ', nrow(df), '\n'))
Output:

k = 4 < 161
k = 5 < 161

Am I missing something?

Sorry, what is the question ?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.