[R] Vector elements and ratios

Andrej Kastrin andrej.kastrin at siol.net
Fri May 26 11:52:57 CEST 2006


Dear useRs,

I have two different length vectors: one column (1...m) and one row 
vector (1...n):

20
40
20
60

5 4 2

Now I have to calculate ratios between column vector elements and each 
row vector elements:

4 5 10
8 10 20
4 5 20
15 12 30

Thank's in advance for any suggestions,

Andrej



More information about the R-help mailing list