View source: R/as.character.ueb.R
as.character.ueb | R Documentation |
Create objects of type "character". Conserve labels
## S3 method for class 'ueb'
as.character(x)
x |
object to be coerced |
attempts to coerce its argument to character type; like as.vector it strips attributes including names. For lists and pairlists (including language objects such as calls) it deparses the elements individually, except that it extracts the first element of length-one character vectors.
Miriam Mota miriam.mota@vhir.org
#create variable
variable <- factor(c(0,0,0,1,1,1,0,"a",1,0, "B"))
Hmisc::label(variable) <- "label de la variable"
# automatic character
variable <- as.character.ueb(variable)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.