rankingsio / 2021-ctr-study

0 stars 0 forks source link

Knitting problem by Daniel #3

Closed de-la-viz closed 3 years ago

de-la-viz commented 3 years ago

Error message: error in unclass(x) * 86400 image

de-la-viz commented 3 years ago

==> not sure… I updated all my R packages and it still works perfectly for me. I suspect that it might be an error due to the format of the date. I suspect that the geom_smooth is not able to use a date as x-axis… But I don’t why this happens only on Daniel's machine. Is results$date in date format? (it should not be in character format)

I found this similar error for someone: https://stackoverflow.com/questions/48269887/timestamp-conversion-error-in-r-error-in-unclassx-86400-non-numeric-argumen, but no solution...

It could be that for some reason the date is in character format on your computer. ==> So I reconverted it again to date format (even if I did this in 01_read.Rmd already and saved in RDS format that should preserve the date format)

de-la-viz commented 3 years ago

not solved (no need)