In R, is it possible to include the same row in multiple groups, or is there other workaround?
问题 I've measured N20 flux from soil at multiple timepoints in the day (not equally spaced). I'm trying to calculate the total N20 flux from soil for a subset of days by finding the area under the curve for the given day. I know how to do this when using only measures from the given day, however, I'd like to include the last measure of the previous day and the first measure of the following day to improve the estimation of the curve. Here's an example to give a more concrete idea: library(MESS)