#' Create NA row
#'
#' Create a row in empty data frame with 'NA'.
#'
#' @param df The empty data frame name.
#'
#' @author HÃ¥kon Kaspersen, \email{hakon.kaspersen@@vetinst.no}
#'
#' @export
#'
create_NA_row <- function(df) {
if (nrow(df) == 0) {
df[nrow(df) + 1,] <- NA
}
return(df)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.