#' DIM HEAD
#'
#' Print the output of all of these functions at once (dim and head in the same function).
#'
#' @param df dataframe that you wish to apply this function to. Can also call a vector/matrix with data.frame(df)
#'
#' @return returns the dataframe DIMensions rows then columns & HEAD output first 6 rows
#' @export
#'
#' @examples
#' dimhead(CogLin_Data)
#' dimhead(data.frame(CogLin_Data))
dimhead <- function(df) {
writeLines("Dataframe Size rows then columns")
print(dim(df))
writeLines("FIRST 6 ROWS")
print(head(df))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.