Description Usage Arguments Value Examples

Returns the dot product of two numeric iterables of equal length

1 | ```
dotproduct(vec1, vec2)
``` |

`vec1` |
the first |

`vec2` |
the second iterable object |

the dot product of the iterators

1 2 3 4 5 6 7 | ```
it <- iterators::iter(1:3)
it2 <- iterators::iter(4:6)
dotproduct(it, it2) # 32
it <- iterators::iter(1:4)
it2 <- iterators::iter(7:10)
dotproduct(1:4, 7:10) # 90
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.