### quickly-find-class-of-dataframe
#http://gettinggeneticsdone.blogspot.com/2010/08/quickly-find-class-of-dataframe-vectors.html
#' @title FUNCTION_TITLE
#' @description FUNCTION_DESCRIPTION
#' @param x PARAM_DESCRIPTION
#' @return OUTPUT_DESCRIPTION
#' @details DETAILS
#' @examples
#' \dontrun{
#' if(interactive()){
#' #EXAMPLE1
#' }
#' }
#' @rdname showClassDF
#' @export
showClassDF <- function(x) {
## 12.6.15 als data.frame
## 21.11. collapsing
tmp = lapply(unclass(x), class)
tmp = lapply(tmp, function(x) paste(x, collapse = ", "))
resi = unlist(tmp)
resi = data.frame(column = names(resi), class = as.vector(resi))
if(any(is.na(resi$column))) resi$column[is.na(resi$column)] = "NA"
rownames(resi) = as.character(resi$column)
resi$column = NULL
resi
}
#http://gettinggeneticsdone.blogspot.com/2010/08/quickly-find-class-of-dataframe-vectors.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.