Closed jaideep777 closed 11 months ago
Can it be fixed by adding the by = "..."
argument?
I dont think so, because the column names are fine and matched correctly, but the values are not consistent across df1 and df2 because the previously computed time_date
vector discards hhmm. The suggested fix basically includes hhmm in the time_date
, so the joining entries have a 1-1 relationship.
This may be related. I get weird results when using the function fdk_convert_lsm()
for a single site. The data frame all
, which gets written into the file seems excessively large. When debugging:
Browse[2]> dim(all)
[1] 12623616 60
20 years of half-hourly data should generate about 350400 rows, not 12623616 row.
Probably because of changes in as.POSIXct(), the
fdk_convert_lsm()
function fails on R version 4.3.1.The problem is in this line:
dplyr::left_join(df[[1]], df[[2]])
it returns a very large df with this warning:Possible fix:
Change lines 68 and 69 as follows: