tochr {scMappR}R Documentation

To Character.

Description

This function checks if your vector is not a character and if not, will convert it to a character.

Usage

tochr(x)

Arguments

x

A character, factor or numeric vector.

Value

tochr Returns a character vector.

Examples


 
 # vector of factors
 fact <- factor(c("a", "b", "c", "d"))
 # convert to character
 char <- tochr(x = fact)
 

[Package scMappR version 1.0.11 Index]