Open kellijohnson-NOAA opened 1 week ago
Removing type.convert()
is causing problems when the data are written to a csv and read back in. Maybe we should coerce datestart and dateend using as.Date() on the back end in FIMSFrame()
and keep type.convert()
?
I'm a fan of type.convert()
so support keeping while converting those columns to dates at whatever point makes the most sense.
Describe the bug
Here https://github.com/NOAA-FIMS/FIMS/blob/0296e41c9834991a62cd237d2387dca687bb6931/data-raw/data_mile1.R#L152 in data-raw, the script that creates data_mile1 the dates are being reformatted as character strings rather than date objects. Thus, when
n_years()
attempts to calculate the number of years in the data it thinks that "9" is the maximum year rather than "30". This line of code has not changed for two years and used to work so I am not sure what is going on.I am wondering if we can just remove the call to
type.convert()
and just haverbind()
?To Reproduce
Screenshots
No response
Which OS are you seeing the problem on?
Windows
Which browser are you seeing the problem on?
No response
Which version of FIMS are you seeing the problem on?
'0.2.0.0' since #37e659c
Additional Context
No response