#' A GetLabels Function
#'
#' This function allows you to get all labels from a dataframe.
#' @param
#' @keywords labels
#' @export
GetLabels <- function(obj){
rtn <- unlist(lapply(obj, label))
rtn <- cbind(colnames(obj),rtn)
rownames(rtn) <- NULL
rtn <- as.data.frame(rtn)
colnames(rtn) <- c("variable","label")
return(rtn)
}
#' @export
ger_labels <- function(obj){
rtn <- unlist(lapply(obj, Wu::label))
rtn <- cbind(colnames(obj), rtn)
rownames(rtn) <- NULL
rtn <- as.data.frame(rtn)
colnames(rtn) <- c("variable", "label")
return(rtn)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.