This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: the concatenation of the dimensions of X and Y (or lengths if dimensions do not exist). FUN = "*" is handled internally as a special case, via as.vector(X) %*% t(as.vector(Y)) , and is intended only for numeric vectors and arrays. %o% is binary operator providing a wrapper for outer(x, y, "*") . Author(s) Jonathan Rougier References Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language . Wadsworth & Brooks/Cole. See Also %*% for usual ( inner ) matrix vector multiplication; kronecker which is based on outer ; Vectorize for vectorizing a non-vectorized function. Examples x <- 1:9; names(x) <- x # Multiplication & Power Tables x %o% x y <- 2:8; names(y) <- paste(y,":",sep="") outer(y, x, "^") outer(month.abb, 1999:2003, FUN = "paste") ## three way multiplication table: x %o% x %o% y[1:3] [Package base version 2.11.1 Index ]...
View Full Document
This note was uploaded on 01/14/2011 for the course STATS 102A 102A taught by Professor Jandeleeuw during the Fall '10 term at UCLA.
- Fall '10