Displaying 2 results from an estimated 2 matches for "tp2300299p2300299".
2010 Jul 23
4
how to calculate the product of every two elements in two vectors
...A=c(1, 2,3)
B=c (9, 10, 11, 12)
I want to get C=c(1*9, 1*10, 1*11, 1*12, ....., 3*9, 3*10, 3*11, 3*12)?
C is still a vector with 12 elements
Is there a way to do that?
--
View this message in context: http://r.789695.n4.nabble.com/how-to-calculate-the-product-of-every-two-elements-in-two-vectors-tp2300299p2300299.html
Sent from the R help mailing list archive at Nabble.com.
2010 Jul 26
1
After writing data in MMF using SEXP structure, can i reference in R?
...*11, 1*12, ....., 3*9, 3*10, 3*11, 3*12)?
> C is still a vector with 12 elements
> Is there a way to do that?
> --
> View this message in context:
>
[10]http://r.789695.n4.nabble.com/how-to-calculate-the-product-of-every-tw
o-elements-in-two-vectors-tp2300299p2300299.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [11]R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> [...