[R] vector generation
Gabor Csardi
csardi at rmki.kfki.hu
Thu Jan 17 17:28:53 CET 2008
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 values
> versus all the values of the z vector. I mean a vector containing the
> values of 526/723, 526/110, and so on, 723/723, 723/110, and so on,
> and so on.
> Is this doable in a simple way??
> Thanks in advance again,
>
>
>
> Juan Pablo Fededa
>
> ______________________________________________
> R-help at 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 commented, minimal, self-contained, reproducible code.
--
Csardi Gabor <csardi at rmki.kfki.hu> UNIL DGM
More information about the R-help
mailing list