Description Usage Arguments Value Author(s) Examples

View source: R/sum_of_products.R

Calculate the sum of squares (`sum_of_squares`

) or sum of products (`sum_of_products`

) of a numeric vector or pair of numeric vectors

1 2 3 | ```
sum_of_squares(x)
sum_of_products(x, y)
``` |

`x` |
a vector of numeric values |

`y` |
a vector of numeric values |

a numeric value

Kevin M. Middleton ([email protected])

1 2 3 4 5 6 | ```
set.seed(4)
x <- rnorm(10)
sum_of_squares(x)
y <- rnorm(10)
sum_of_products(x, y)
``` |

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.