tochr: To Character.

Description Usage Arguments Value Examples

View source: R/tochr.R

Description

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

Usage

1
tochr(x)

Arguments

x

A character, factor or numeric vector.

Value

tochr Returns a character vector.

Examples

1
2
3
4
5
6
 
 # vector of factors
 fact <- factor(c("a", "b", "c", "d"))
 # convert to character
 char <- tochr(fact)
 

DustinSokolowski/scMappR documentation built on July 7, 2020, 5:44 p.m.