Converting columns to date and numeric format but I get NA conversion error

Please wait a sec, what does the below code does?

all_trips[, c("started_at", "ended_at", "DiffTime")]

That code only displays the three columns started_at, ended_at, and DiffTime to make it easy to inspect the result of the calculation. You can leave that line out of your code. If you did use it, you would have to change it to match the column name in your code.

all_trips[, c("started_at", "ended_at", "ride_length")]

Alright, thank you so much. It displayed the result up to 333 rows.

#Check the result of this code
> all_trips[, c("started_at", "ended_at", "ride_length")]
             started_at            ended_at ride_length
1   2019-04-01 00:02:00 2019-04-01 00:09:00         420
2   2019-04-01 00:03:00 2019-04-01 00:20:00        1020
3   2019-04-01 00:11:00 2019-04-01 00:15:00         240
4   2019-04-01 00:13:00 2019-04-01 00:18:00         300
5   2019-04-01 00:19:00 2019-04-01 00:36:00        1020
6   2019-04-01 00:19:00 2019-04-01 00:23:00         240
7   2019-04-01 00:26:00 2019-04-01 00:35:00         540
8   2019-04-01 00:29:00 2019-04-01 00:36:00         420
9   2019-04-01 00:32:00 2019-04-01 01:07:00        2100
10  2019-04-01 00:32:00 2019-04-01 01:07:00        2100
11  2019-04-01 00:36:00 2019-04-01 00:41:00         300

You've made my journey to becoming a data analyst seamless. I would love to learn more.