you just need a count of how many of each number you can just use table().
> tmp <- c(111,106,117,108,120,108,108,116,113)
> table(tmp)
tmp
106 108 111 113 116 117 120
1 3 1 1 1 1 1
On Thu, Nov 21, 2013 at 9:10 AM, b. alzahrani wrote:
hi guys
Assume I
hi guys
Assume I have this dataframe:
v3$number_of_ones
[1] 111 106 117 108 120 108 108 116 116 113
Is there any command in r that gives me the frequency of these numbers (how
many each number is repeated e.g. the number 108 repeated 2 and 111 repeated
one an so on)
I have around 10^6 numb
,n=10)), x2=
> log(rdpln2(a=2.5,b=.01,t=0.45,v=6.5,n=10
>
> # Reed equation 8 http://www.math.uvic.ca/faculty/reed/dPlN.3.pdf
> # with S1 errata #1 from
> http://www.plosone.org/article/info%3Adoi%2F10.1371%2Fjournal.pone.0048964
>
> ddpln <- function(x,
Fjournal.pone.0048964
>
> ddpln <- function(x, a=1, b=1, v=0, t=1){
> # Density of Double Pareto LogNormal distribution
> # from "b. alzahrani" email of 2013-11-13
> # per formula 8 from http://cs.stanford.edu/people/jure/pubs/dpln-kdd08.pdf
>
> c <- (a * b /(a+b))
has
> the equations.
>
> library(VGAM) for *pareto() and library(stats) for *lnorm() should get you
> most of the way there.
>
> On Nov 12, 2013, at 10:47 AM, "b. alzahrani"
> wrote:
>
> > Hi guys
> > I would like to generate random number Doub
Hi guys
I would like to generate random number Double Pareto Log Normal Distribution
(DPLN). does anyone know how to do this in R or if there is any built-in
function.
Thanks
**
Bander
*
Hi guys
Given a exponential curve, is there any function on r that can generate
exponential distributed random numbers?
in General I want an function that can transform one probability distribution
into another??
Regards
**
Ba
Hi
Is there any implementation for AES encryption algorithm in R?
Thanks
Bander
__
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 c
8 matches
Mail list logo