s: s

View source: R/s.R

sR Documentation

s

Description

This function is used internally to raise two vectors to the specified powers and return the sum of their element-wise product.

Usage

s(dat, i, j)

Arguments

dat

A matrix with two columns

i

power 1

j

power 2

Value

The sum of dat[,1]^i and dat[,2]^j

Examples

dat <- cbind(c(1:4),c(2:5))
s(dat,3,4)


yelleKneK/SMSD documentation built on Nov. 23, 2022, 6:40 p.m.