s | R Documentation |
This function is used internally to raise two vectors to the specified powers and return the sum of their element-wise product.
s(dat, i, j)
dat |
A matrix with two columns |
i |
power 1 |
j |
power 2 |
The sum of dat[,1]^i
and dat[,2]^j
dat <- cbind(c(1:4),c(2:5)) s(dat,3,4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.