library(mda)
I'm using:
pred.test <- predict(model.fda, test.data)
after model.fda <- fda(Y~., train.data)
but obtained the following message:
Error in mindist[l] <- ndist[l] : NAs are not allowed in subscripted assignments.
Thank you very much for the hint!