Page Visits Funnel Step 5 Error

Hi everyone!
I’m on Step 5 of Page Visits Funnel, and I seem to be stuck. I’ve got my code like it is here, but it keeps giving me an error code no matter what I do. Any suggestions please?

# define visits_cart here:
visits_cart <- visits %>%
     left_join(cart)
     nrow(visits)
visits_cart

# define total_visits here:
visit_no_cart <- visits_cart %>%
     filter(is.na(cart_time))
visit_no_cart

# define visit_no_cart here:
total_visits <- nrow(visit_no_cart)
total_visits

# calculate visit_no_cart_percent here:
visit_no_cart_percent <- total_visits / visit_no_cart
visit_no_cart_percent

This is the error code I keep getting.

Error in FUN(left, right): non-numeric argument to binary operator

Howdy!

So, here was what worked for me, and hopefully it may be useful to you!

visit_no_cart_percent ← nrow(visit_no_cart)/nrow(visits) * 100

print(visit_no_cart_percent)

Happy coding!