tochr: To Character.

View source: R/tochr.R

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

scMappR documentation built on July 9, 2023, 6:26 p.m.