Skip to content

Finding the highest and lowest rates of increase at specific x value across several time series in R

1 message · Alexander Ilich

#
It's not clear to me why that would be happening. Are you getting that with your real data or the example data generated in the code I sent? The only reasons I can think of for that happening is if you're trying to access the zeroeth element of a vector which would require which.min(df2$abs_diff) to somehow evaluating to zero (which I don't see how it could) or if your dataframe is zero rows.