Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lubridate related fix #108

Closed
wants to merge 2 commits into from
Closed

Lubridate related fix #108

wants to merge 2 commits into from

Conversation

LylChun
Copy link
Contributor

@LylChun LylChun commented Nov 15, 2022

mag, meal_metrics, and lasagna_plots changes are just minor: integer instead of numeric, propagate tz, and capitalization respectively.

replacement of lubridate within is for checks as discussed

# rule = 1 means points outside of xmin/xmax will be NA (no extrapolation)
intervals <- list(nrow(missing))
for (i in 1:nrow(missing)) {
grid = stats::approx(x = c(missing$start[i], missing$end[i]),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a little confused why you interpolate again. Line 175 above did all interpolation already (including over missing regions). So after the gaps are identified, new$y should be set to NA within gaps (no more interpolation).

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if my understanding is correct, then once you identified start/end times, you should be setting new$y directly to NA for elements corresponding to those times (new$x > start time and new$x < end time), does this make sense?

@LylChun LylChun closed this Nov 16, 2022
@LylChun LylChun deleted the revisions branch November 16, 2022 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants