Nothing
#' @title Blanks
#' @description Create character vector of blanks
#' @details This function emulates the behavior of a homonimous function from
#' Matlab
#' @param n length of vector
#' @author Waldir Leoncio
#' @return Vector of n blanks
#' @export
#' @examples
#' blanks(1)
#' blanks(3)
blanks <- function(n) {
if (n < 0) {
warning("Negative n passed. Treating as n = 0")
n <- 0
}
paste(rep(" ", n), collapse = "")
}
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.