#' Tabular Objects Metadata
#'
#' @description type less - tabular objects metadata
#'
#' @section Functions:
#'
#' \describe{
#' \item{`cn()`}{cn is a shorthand for the base function colnames}
#'
#' \item{`rn()`}{rn is a shorthand for the base function row.names}
#'
#' \item{`nas()`}{count the number of NA values in a given
#' tabular object}
#' }
#'
#' @seealso \code{colnames} and \code{row.names} in base package
#'
#' @param df dataframe object
#'
#' @name metadata
#' @examples
#' cn(iris)
#' rn(mtcars)
#' nas(airquality)
NULL
#' @rdname metadata
#' @export
cn <- function(df) colnames(df)
#' @rdname metadata
#' @export
rn <- function(df) row.names(df)
#' @rdname metadata
#' @export
nas <- function(df) lapply(df, naCount)
# implicit function
naCount <- function(x) length(which(is.na(x)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.