Re: [R] frequency of numbers

2013-11-21 Thread b. alzahrani
If 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 cs_2...@hotmail.com wrote: hi guys Assume I

[R] frequency of numbers

2013-11-21 Thread b. alzahrani
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

Re: [R] Double Pareto Log Normal Distribution DPLN

2013-11-16 Thread b. alzahrani
://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, a=1, b=1, v=0, t=1){ # Density of Double Pareto LogNormal distribution # from b. alzahrani cs_2...@hotmail.com email of 2013-11-13

Re: [R] Double Pareto Log Normal Distribution DPLN

2013-11-14 Thread b. alzahrani
paper generates DPLN variates directly, so maybe: rdpln=function(n,a=1,b=1,t=1,v=0){exp(v+t*rnorm(n,sd=t)+rexp(n,rate=1/a)-rexp(n,rate=1/b))} Dave On Nov 13, 2013, at 4:34 PM, b. alzahrani cs_2...@hotmail.com wrote: You help is much appreciated. Just one last point if you could help

Re: [R] Double Pareto Log Normal Distribution DPLN

2013-11-13 Thread b. alzahrani
) for *lnorm() should get you most of the way there. On Nov 12, 2013, at 10:47 AM, b. alzahrani cs_2...@hotmail.com wrote: 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

[R] Double Pareto Log Normal Distribution

2013-11-12 Thread b. alzahrani
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 *

[R] transform one probability distribution into another

2013-11-04 Thread b. alzahrani
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 **

[R] AES algorithm package

2013-10-09 Thread b. alzahrani
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