Error "non-numeric argument to binary operator" when creating calculations

Problem

Sometimes you may encounter the “non-numeric argument to binary operator” error when creating calculations, as shown below:

Caused by error in `time / max(row_number, na.rm = TRUE)`:
! non-numeric argument to binary operator

Solution

This problem occurs when columns used in calculation formulas, such as “time” or “row_number,” are not numeric data types despite being used in arithmetic operations.

Please convert the data types to numeric before executing the calculation process. For information on how to convert data types, please refer to the documentation below.