I have a data table ("norm") containing numeric - at least to what I can see - normalized values of the following form:
When I am executing
k <- kmeans(norm,center=3)
I am receving the following error:
Error in do_one(nmeth) : NA/NaN/Inf in foreign function call (arg 1)
Can you help me? Thank you!
This error occurs also due to non numeric values present in the table.
For error stating:
the dataset you have posted above contains scaled entries, the reason must be that you have NA values in your dataset, hence omit them by the following code.
all of you all who are having " Error in do_one(nmeth) : NA/NaN/Inf in foreign function call (arg 1)" problem instead of
write the following and please be careful of the case in iris write whatever you have used in the beginning
kmeans cannot handle data that has NA values.
The mean and variance are then no longer well defined, and you don't know anymore which center is closest.