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!
NaN/NA/Inf
in your data? You can check usingis.na()
andis.finite()
functions – NamhoiNAs
in my file sheet, but I thought that shouldnt be a problem?!is.finite()
returns a lot ofTRUEs
but also someFALSEs
. How can i fix this? – BusinesswomanNA/Inf/NaN
values from your data. See "missing value imputation" methods for details. One simple method is replacing them by row/column mean values. – Namhoi