[R] variation

Jannis bt_jannis at yahoo.de
Sat Jun 5 15:22:45 CEST 2010


As far as I know there is no such function (i could be wrong here!). The 
reason for that might be that it is so straightforward to calculate it 
as the ratio of sd() and mean()....for similar reasons there is most 
probably no function for the variance (and only one for std.dev)....I 
would think that the easiest solution for you is to create the function 
(~3 lines of code) yourself!

Cheers
Jannis

Adel ESSAFI schrieb:
> 2010/6/5 Adel ESSAFI <adel.safi at imag.fr>
>
>   
>> 2010/6/5 Jannis <bt_jannis at yahoo.de>
>>
>> What exactly do you mean by "variation"? As I understand it, this term is a
>>     
>>> broad term for all kinds of different "spread measures" (like quantile range
>>> or standard deviation). Do you mean the Coefficient of Variation? If you
>>> found out how to
>>>       
>>     
> Yes, that what I mean. But I looked for ready  function :)
>
>
>
>   
>> Yes, that what I mean. But I looked for ready  function :)
>>
>>
>>     
>>> compute the mean and the std.dev., it is straightforward to calculate
>>> it.....
>>>
>>> Adel ESSAFI schrieb:
>>>
>>>       
>>>> Hi list
>>>> I am a new user of R. I ask for some "beginner" question
>>>>
>>>> I am searching if there is any function that computes the variation of
>>>> some
>>>> discrete values of a vector (mean() and sd() exists, but i have not find
>>>> variation).
>>>>
>>>> Thanks in advance
>>>>
>>>> Adel
>>>>
>>>>
>>>>  ------------------------------------------------------------------------
>>>>
>>>>
>>>> ______________________________________________
>>>> R-help at 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.
>>>>
>>>>
>>>>         
>>>       
>> --
>> PhD candidate in Computer Science
>> Address
>> 3 avenue lamine, cité ezzahra, Sousse 4000
>> Tunisia
>> tel: +216 97 246 706 (+33640302046 jusqu'au 15/6)
>> fax: +216 71 391 166
>>
>>     
>
>
>
>   
> ------------------------------------------------------------------------
>
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list