Hi! 22.06.2016, 22:00, chalabi.elahe at yahoo.de wrote: > Dear Kimmo, > I already used df$speed[training] in df.xyf but I get this error: > Error in xyf(Xtraining,factor(df$speed[training]),grid=somgrid(5, : > NA/NaN/Inf in foreign function call (arg 1) Please check for zeros (0) and NAs in df$speed or Xtraining. They could be a problem here... HTH, Kimmo