Re: [R] vector generation

2008-01-24 Thread Albert Greinoecker
z[z > 1] regards, Albert Am Donnerstag, den 24.01.2008, 10:54 -0300 schrieb Juan Pablo Fededa: > Dear Contributors: > > I have the next vector: > > "Z" > > z = (526, 0.1, 110, 0.2, 34, 0.4, 614, 0.5, 1, 14, 15) > > > I want to generate a vector containing the values higher than 1 > correspo

Re: [R] vector generation

2008-01-17 Thread Gabor Csardi
See ?outer outer(Z, Z, function(x,y) x/y) Gabor On Thu, Jan 17, 2008 at 01:24:33PM -0300, Juan Pablo Fededa wrote: > Dear Contributors: > > I have the next vector: > > "Z" > > 526 > 723 > 110 > 1110 > 34 > 778 > 614 > 249 > 14 > > I want to generate a vector containing the ratios of all the