It looks like all_trips_v2 is only the first six rows of your data. Here is the structure() code that reproduces the first six rows of your data, taken from earlier in this thread, and a summary function that reproduces the output that you got, at least in the started_at and ended_at columns. Do you still have the full data set stored in a data frame?
all_trips <- structure(list(ride_id = c("21742443", "21742444", "21742445",
"21742446", "21742447", "21742448"),
started_at = c("1/1/2019 0:04", "1/1/2019 0:08", "1/1/2019 0:13",
"1/1/2019 0:13", "1/1/2019 0:14","1/1/2019 0:15"),
ended_at = c("1/1/2019 0:11", "1/1/2019 0:15","1/1/2019 0:27", "1/1/2019 0:43",
"1/1/2019 0:20", "1/1/2019 0:19"),
rideable_type = c("2167", "4386", "1524", "252", "1170", "2437"),
start_station_id = c(199, 44, 15, 123, 173, 98),
start_station_name = c("Wabash Ave & Grand Ave","State St & Randolph St",
"Racine Ave & 18th St", "California Ave & Milwaukee Ave",
"Mies van der Rohe Way & Chicago Ave", "LaSalle St & Washington St"),
end_station_id = c(84, 624, 644, 176, 35, 49),
end_station_name = c("Milwaukee Ave & Grand Ave","Dearborn St & Van Buren St ()",
"Western Ave & Fillmore St ()","Clark St & Elm St", "Streeter Dr & Grand Ave",
"Dearborn St & Monroe St"),
member_casual = c("member", "member", "member", "member","member", "member"),
date = structure(c(-719143, -719143, -719143,-719143, -719143, -719143), class = "Date"),
month = c("01","01", "01", "01", "01", "01"),
day = c("20", "20", "20", "20","20", "20"),
year = c("1", "1", "1", "1", "1", "1"),
day_of_week = c("Saturday","Saturday", "Saturday", "Saturday", "Saturday", "Saturday")),
row.names = c(NA,-6L),
class = c("tbl_df", "tbl", "data.frame"))
all_trips$started_at <- as.POSIXct(all_trips$started_at, format = "%m/%d/%Y %H:%M")
all_trips$ended_at <- as.POSIXct(all_trips$ended_at, format = "%m/%d/%Y %H:%M")
summary(all_trips)
#> ride_id started_at ended_at
#> Length:6 Min. :2019-01-01 00:04:00 Min. :2019-01-01 00:11:00
#> Class :character 1st Qu.:2019-01-01 00:09:15 1st Qu.:2019-01-01 00:16:00
#> Mode :character Median :2019-01-01 00:13:00 Median :2019-01-01 00:19:30
#> Mean :2019-01-01 00:11:10 Mean :2019-01-01 00:22:30
#> 3rd Qu.:2019-01-01 00:13:45 3rd Qu.:2019-01-01 00:25:15
#> Max. :2019-01-01 00:15:00 Max. :2019-01-01 00:43:00
#> rideable_type start_station_id start_station_name end_station_id
#> Length:6 Min. : 15.0 Length:6 Min. : 35.00
#> Class :character 1st Qu.: 57.5 Class :character 1st Qu.: 57.75
#> Mode :character Median :110.5 Mode :character Median :130.00
#> Mean :108.7 Mean :268.67
#> 3rd Qu.:160.5 3rd Qu.:512.00
#> Max. :199.0 Max. :644.00
#> end_station_name member_casual date month
#> Length:6 Length:6 Min. :0001-01-20 Length:6
#> Class :character Class :character 1st Qu.:0001-01-20 Class :character
#> Mode :character Mode :character Median :0001-01-20 Mode :character
#> Mean :0001-01-20
#> 3rd Qu.:0001-01-20
#> Max. :0001-01-20
#> day year day_of_week
#> Length:6 Length:6 Length:6
#> Class :character Class :character Class :character
#> Mode :character Mode :character Mode :character
#>
#>
#>
Created on 2024-03-03 with reprex v2.0.2