Description Usage Arguments Details Value
We use this function internally to provide default variable for all columns in a data.frame from column names.
1 2 3 4 | default_label(object)
## S4 method for signature 'data.frame'
default_label(object)
|
x |
A |
#' @keywords internal
setMethod( "assign_annotation" , signature = c(object = "vector", value = "character", name = "character") , definition = function(object, value, name) object <- new( paste0("annotated_", class(object)) , annotation <- new("vector_annotation") ) object@label <- object@annotation@label object# return )
Returns a data.frame
with labelled columns. Labels are preserved (if already specified), otherwise generated from column names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.