as.character.ueb: as.character.ueb Function

View source: R/as.character.ueb.R

as.character.uebR Documentation

as.character.ueb Function

Description

Create objects of type "character". Conserve labels

Usage

## S3 method for class 'ueb'
as.character(x)

Arguments

x

object to be coerced

Value

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.

Author(s)

Miriam Mota miriam.mota@vhir.org

Examples

#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)

uebvhir/anaStatsUEB documentation built on May 6, 2023, 3:46 a.m.