[datatable-help] multiply columns in two vectors

Michael Smith my.r.help at gmail.com
Wed Mar 11 15:35:28 CET 2015


Vector? I guess you mean n x m matrix. Is `%*%` what you're looking for? 
And this question is probably more suitable for the r-help mailing list.

On 03/11/2015 05:20 PM, Ingeborg Callesen wrote:
> Dear r-helpers out there
>
> Is there a function or a code string for multiplying the numbers in e.g.
> a n x m vector by another n x m vector ? The result should be a n x m
> vector with the product of the two numbers in each vector on the same
> position in the new vector.
>
> Thanks for any help in advance.
>
> BR Ingeborg Callesen
>
>
>
> _______________________________________________
> datatable-help mailing list
> datatable-help at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
>


More information about the datatable-help mailing list