[R] Time series - Spectral Clustering (kernlab)

229 views
Skip to first unread message

PA Roullet

unread,
Jun 3, 2014, 12:21:38 PM6/3/14
to r-help-...@googlegroups.com
Hello everyone,

I have a question concerning specc function from kernlab.

I get this error :
> sc <- specc(c, centers = 3)
Error in seq.default(lsmin, (Re(log2(midmin)) - 0.5), stepm) : 
  'from' cannot be NA, NaN or infinite

when I try using specc using the data that I have joined to this message as .rda or .csv

Anyone got the slightest idea why I get this error and what i can do to resolve the problem ?

This problem only arise when I use matrix if I transform my matrix as a data frame I obtain other error that are also kind of strange :

> specc(dfTest, centers = 2)
Error: number of cluster centres must lie between 1 and nrow(x)
> specc(dfTest, centers = 3)
Error in .local(x, ...) : more cluster centers than data points.

Thanks a lot for your time and sorry if I did something wrong, first time posting here.
c.rda
dfTest.csv

Ramazan ünlü

unread,
May 11, 2016, 3:51:01 PM5/11/16
to R-help-archive, papa3sh...@gmail.com
Hello, did you find any solution for this problem?
Reply all
Reply to author
Forward
0 new messages