Sparse.model.matrix error message
Sparse.model.matrix error message I'm trying to create a sparse-matrix and get this error message: Error: fnames == names(mf) are not all TRUE I think it has something to do with the column names of my data, maybe you can help. Here are the column names: Error: fnames == names(mf) are not all TRUE colnames(trainDataShrinkage) <-"Bildungsgrad2_Lower_secondary_education" ,"Bildungsgrad3_Upper_secondary_education" ,"Bildungsgrad4_Post-secondary_non-tertiary_education" ,"Bildungsgrad5_Short-cycle_tertiary_education" ,"Bildungsgrad6_Bachelors_or_equivalent_level" ,"Bildungsgrad7_Masters_or_equivalent_level" ,"Bildungsgrad8_Doctoral_or_equivalent_level" ,"Familienstand2_Verheiratet,_getrenntlebend" ,"Familienstand3_Ledig" ,"F...
