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

Cryptic error message from curve_interval #173

Open
joshua-goldberg opened this issue Mar 17, 2023 · 1 comment
Open

Cryptic error message from curve_interval #173

joshua-goldberg opened this issue Mar 17, 2023 · 1 comment

Comments

@joshua-goldberg
Copy link

joshua-goldberg commented Mar 17, 2023

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

@mjskay
Copy link
Owner

mjskay commented Mar 25, 2023

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

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

No branches or pull requests

2 participants