Overlap_circular example not working
Closed this issue · 4 comments
Hi @yyue-r
I noticed that the example for circular_overlap is not working. Can you look into this?
x <- runif(n = 100, min = 0, max = pi3/2)
y <- runif(n = 100, min = pi, max = 2pi)
circular_overlap(x, y, circular_units = "radians", density_args = list(bw = 1))
above line generates this error: Error in match.arg(type) : 'arg' must be NULL or a character vector
Thanks!
Sydne
Hi Sydne
I think Quentin wrote this example. I remember running it and it worked. @qdread Could you help us take a look?
Thank you very much!
Also, apologies if it does not work. The circular overlap code was poorly developed. It might be OK to leave it in development form for now and not necessarily need to include it in the examples. But I will look into it.
OK I realized it was a very small bug 🐛 in the circular_overlap function, so I fixed it by adding two parentheses 🧙