I wrote the following script in R software in order to converting date format in a prospective cohort data. But, I got an odd error. Could everyone help me?

Code:

for(col in colnames(outcome)){

  if(startsWith(col, "eventdate_")){

    outcome[, col]

Similar questions and discussions