Issue running cross-validation in R

(topic deleted by author)