fit_prog_gsynth attempts to transform two variables to numeric. However, because the transformations are not saved to df_long, they have no end effect and the function continues on with character vectors instead of numeric vectors.
|
transform(long_df, time = as.numeric(time)) |
(Also, FWIW, the documentation for transform warns against using it in anything other than interactive use)