Skip to content

Commit

Permalink
actually decimal places of starttime$sec were trimmed off, not rounded
Browse files Browse the repository at this point in the history
  • Loading branch information
l-k- committed Feb 16, 2024
1 parent edb2747 commit 2e8621e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_starttime_weekday_truncdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ get_starttime_weekday_truncdata = function(monc, dformat, data,
weekdays = c("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
wdayname = weekdays[wday]

starttime$sec = round(starttime$sec)
starttime$sec = floor(starttime$sec)

# assess how much data to delete till next 15 minute period
secshift = 60 - starttime$sec # shift in seconds needed
Expand Down

0 comments on commit 2e8621e

Please sign in to comment.