I am working with the following data in Rstudio. I am trying to assign column names to the data. I have employed the following commands:
nlsdata -> read.table("C:/Users/perdue/Desktop/Adv.MicroEconometrics/HA 3/data/nls.dat", 
                       header = FALSE, dec = ".")
This command returns as a first row column names 'v1 v2 v3... v52'. When I follow with
colnames(nlsdata)
I get a list of names: v1, v2, ..., v52. Then
col.names(nlsdata) <- c("inputid","nearc2","nearc4","nearc4a","nearc4b","ed76","ed66","age76",
                        "daded","nodaded","momed","nomomed","weight","momdad14","sinmom14",
                        "step14","reg661","reg662","reg663","reg664","reg665","reg666","reg667",
                        "reg668","reg669","south66","work76","work78","lwage76","lwage78",
                        "famed","black","smsa76r","smsa78r","reg76r","reg78r","reg80r",
                        "smsa66r","wage76","wage78","wage80","noint78","enroll76","enroll78",
                        "enroll80","kww","iq","marsta76","marsta78","marsta80","libcrd14") 
where newname[i] is the ith column name of dataframe nlsdata`
Error: unexpected symbol in ""south66","work76","work78","lwage76","lwage78","famed","black","smsa76r","smsa78r","reg76r","reg78r","reg80r","smsa66r","wage76","wage78","wage80", "noint78","enroll76","enroll78","enroll80","
The error messages seem to suggest a syntax error. I have loooked – more than once – and can't find/recognize one.
 
     
     
    