How do I resolve error: objectnotfound, difftime() function in R Language

25 views Asked by At

I have two columns ended_at and started_at. I want to calculate the time difference using this code below

all_trips <- Dfftime(all-trips&ended_at, all_trips&started_at) but it keeps returning

object ended_at not found

1

There are 1 answers

0
Dan On
output <- difftime(all_trips$ended_at, all_trips$started_at)