This reads like homework. You should show some evidence where you are stuck
or pick up an R book/manual/introduction after which you should be able to
do this yourself quite easily.
Daniel
-
cuncta stricte discussurus
-
-
cu
just convert your vector from 0,1 to .995,1.005 and use cumprod
On Thu, Apr 8, 2010 at 10:22 AM, Redhwan wrote:
>
> Hi
>
> So my particular problem is this:
>
> I have a row vector of length 5200 elements - specifically created by
>
> x<-rbinom(5200,1,0.5)
> y<-matrix(x,nrow=1,ncol=5200)
> y
>
>
2 matches
Mail list logo