Nothing
#' Extends the length of a variable
#' @noRd
#' @keywords internal
#'
#' @param variable variable that should be extended
#' @param length length of the returned variable
extend_var <- function(variable, length){
if(length(variable) == 1){
return(rep(variable, length))
} else return(variable)
}
a <- "a"
b <- "b"
for(x in c(a, b)){
assign(x, extend_var(x, 10))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.