Re: [R] vector of constant values

2015-10-29 Thread Bert Gunter
Have you read any R tutorials?? This is about as basic as it gets. ?rep -- Bert P.S. Due to vectorized operations, there is probably no need to do this anyway! Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On T

Re: [R] vector of constant values

2015-10-29 Thread Gerrit Eichner
Hi, Thanoon! I want to simulate a vector of constants values with dimention = 200x2 and all values of this vector are 1. You mean "I want to _construct_ a _matrix_ of dimension 200 x 2 with all entries equal to 1", don't you? Homework? Take a look at ?matrix Hth -- Gerrit Any help

Re: [R] vector of constant values

2015-10-29 Thread Sarah Goslee
If you mean you need a matrix of that size, matrix(1, nrow=200, ncol=2) On Thu, Oct 29, 2015 at 1:07 PM, thanoon younis wrote: > Dear Members, > > I want to simulate a vector of constants values with dimention = 200x2 and > all values of this vector are 1. > > Any help please. > > > Regards > _