Remove test input data
Remove closing brace
Ask to assign value to ‘grid_start_time'
Validate the input of the date and time string
Determine whether the supplied date/time can be POSIXct
Assign to ‘grid_start_time_char’ if validation passes
Ask to assign value to ‘grid_end_time'
Validate input of the date/time string
Test if supplied date/time yields valid POSIXct date/time
Assign to ‘grid_start_time_char’ if validation passes
Make correction to comment
Ask to assign value to ‘sampling_interval_type'
Take user input and assign numeric value (type code)
Make correction to comment
Make syntax corrections to set of ‘if' statements