[R] `hist()' the weighted value

rongguiwong 0034058 at fudan.edu.cn
Mon Oct 25 15:57:43 CEST 2004


how about
>hist(rep(x,w))
i think it works.

> I have the numeric vector `x' and the weights `w' for it of the same
> length. I'd like to have hist of `x' weighted with `w'.
> How to do that? I found nothing about weights in the hist help page..




More information about the R-help mailing list