has anyone has this issue??? me and a classmate cannot figure out what/where the errors are. We even went as far as taking out dummy variables and placing them back in again (among also looking at everything line-by-line)
the neuralnet function you chose to use wants the variables in the data.frames you give it to have syntactically valid names for R :
A syntactically valid name consists of letters, numbers and the dot or underline characters and starts with a letter or the dot not followed by a number. Names such as ".2way" are not valid, and neither are the reserved words.
in the following I demonstrate how neuralnet can be flumoxed by poisoning a variable name.
While you can use normal methods to rename variables manually and fix in a targetted way; I also show an example of using make.names() which is a function that tries to reconstruct names to be valid