I have a data which contain some NA value in their elements. What I want to do is to perform clustering without removing rows where the NA is present.
The error is due to the presence of non-numeric variables in the data (numbers encoded as strings). You can convert them to numbers:
mydata <- apply( mtcars, 2, as.numeric ) d <- distfunc(mydata)