Description Usage Arguments Author(s) Examples
View source: R/myApplyVector.R
This function applies a function to the elements of a vector so that the result for each element is located in a row in a matrix. It is used internally.
1 | myApplyVector(FUN = NULL, dataVector = NULL, out.ncols = 1, ...)
|
FUN |
the function to apply |
dataVector |
The vector to which elements apply the function |
out.ncols |
Number of columns for the output matrix |
... |
Further arguments to passed |
Marina Saez Andreu
1 2 | exampleF <- function(X){c(X + 5, X*5)}
myApplyVector(FUN = exampleF, dataVector = 1:10, out.ncols = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.