tochr function

To Character.

To Character.

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

tochr(x)

Arguments

  • x: A character, factor or numeric vector.

Returns

tochr Returns a character vector.

Examples

# vector of factors fact <- factor(c("a", "b", "c", "d")) # convert to character char <- tochr(x = fact)
  • Maintainer: Dustin Sokolowski
  • License: GPL-3
  • Last published: 2023-06-30