View source: R/expression-vectorize.R
expression_vectorize | R Documentation |
Takes an expression and removes the for loop and adds cbind
for arrays.
expression_vectorize(x)
x |
An expression |
An expression
expression_vectorize(rlang::expr(for (i in 1:nObs) {
eCount[i] <- b0
}))
expression_vectorize(
rlang::expr(
for (i in 1:length(LogLength)) {
eWeightLength[i] <- b0 + bDayte * Dayte[i]
}
)
)
expression_vectorize(
rlang::expr(
for (i in 1:nObs) {
eAnnual[i] <- bAnn[Ann[i]] + bSA[Site[i], Ann[i]]
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.