Description Usage Arguments Value Author(s) Examples
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 (kmm@csusb.edu)
1 2 3 4 5 6 | set.seed(4)
x <- rnorm(10)
sum_of_squares(x)
y <- rnorm(10)
sum_of_products(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.