Learn R Programming

rMR (version 1.1.0)

sumsq: Sum of squares

Description

Internal Function for Use in Package for Calculating Sum of Squares of a Vector

Usage

sumsq(x)

Arguments

x

Numeric vector to be evaluated

Value

The sum of squares of the vector

Details

Internal function for package

Examples

Run this code
# NOT RUN {
vec <- sample(c(100:120), 50, replace = TRUE)
sumsq(vec)
# }

Run the code above in your browser using DataLab