Dear forum users,
I am using a large RedCap dataset. RedCap automatically generates a STATA do file to help import all variable types into STATA.
However, while this generic STATA do file contains commands to “destring” all date variables, this does not apply to time variables. In other words all time variables are still in string format and not yet appropriate for analysis. In order to avoid typing hundreds of single commands manually I was wondering whether somebody knows a useful loop-command to automatically “destring” all time-variables in the dataset.
Best wishes,
Hannes
I am using a large RedCap dataset. RedCap automatically generates a STATA do file to help import all variable types into STATA.
However, while this generic STATA do file contains commands to “destring” all date variables, this does not apply to time variables. In other words all time variables are still in string format and not yet appropriate for analysis. In order to avoid typing hundreds of single commands manually I was wondering whether somebody knows a useful loop-command to automatically “destring” all time-variables in the dataset.
Best wishes,
Hannes
Comment