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.