Hello R users,

When I type

d <- density(MyData$x)

I obtain a density object I can plot,

But I wonder if there is a way to easily compute the length of the
density curve ?

( I imagine I could compute the distances between the 512 equally
spaced points using their x and y, but does it exist a smarter way ?)

Regards,

SW

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to