ggdist icon indicating copy to clipboard operation
ggdist copied to clipboard

Cryptic error message from curve_interval

Open joshua-goldberg opened this issue 2 years ago • 1 comments

Hi there!

I've been messing around with curve_intervals to summarize data, but am encountering a rather unhelpful error message: Error in rowMeans(pointwise_depths, na.rm = na.rm) : 'x' must be an array of at least two dimensions. I'm willing to believe that my data may not be a good fit for a curve-wise interval (or at least that point_interval is the appropriate option), but I'd appreciate some combination of a more informative error message and/or more examples of curve_interval(perhaps including the .along argument?) that illustrate use cases.

My data are not evenly or identically distributed along the 'x' variable across curves, which seems to be problematic. Happy to come up with a reprex if that's helpful to diagnose the issue, but this may be known/intended/desirable behavior, so I'll save a bit of digital ink for the moment.

Cheers, J

joshua-goldberg avatar Mar 17 '23 20:03 joshua-goldberg

Yeah that's a bit odd --- a reprex would help me diagnose. Thanks!

mjskay avatar Mar 25 '23 19:03 mjskay