On 9/29/2009 6:06 AM, abdul kudus wrote:
> Dear all,
>
> Given mypi
> mypi <- c(0.1,0.2,0.2,0.1,0.3,0.4,0.4,0.4,0.4,0.2)
>
> I want to create myfreq as follows
>
> mypi myfreq
> 0.1 2
> 0.2 3
> 0.2 3
> 0.1 2
> 0.3 1
> 0.4 4
> 0.4 4
> 0.4 4
> 0.4 4
> 0.2 3
>
> where myfreq is frequency of its co
Dear all,
Given mypi
mypi <- c(0.1,0.2,0.2,0.1,0.3,0.4,0.4,0.4,0.4,0.2)
I want to create myfreq as follows
mypi myfreq
0.1 2
0.2 3
0.2 3
0.1 2
0.3 1
0.4 4
0.4 4
0.4 4
0.4 4
0.2 3
where myfreq is frequency of its corresponding observation. How to do that?
Thank you,
Regards,
A. Kudus
Institu
2 matches
Mail list logo