sum_of_squares: Sum of Squares and Sum of Products

Description Usage Arguments Value Author(s) Examples

View source: R/sum_of_products.R

Description

Calculate the sum of squares (sum_of_squares) or sum of products (sum_of_products) of a numeric vector or pair of numeric vectors

Usage

1
2
3

Arguments

x

a vector of numeric values

y

a vector of numeric values

Value

a numeric value

Author(s)

Kevin M. Middleton ([email protected])

Examples

1
2
3
4
5
6
set.seed(4)
x <- rnorm(10)
sum_of_squares(x)

y <- rnorm(10)
sum_of_products(x, y)

abd documentation built on May 31, 2017, 2:02 a.m.