![]() |
VOOZH | about |
as.character() function in R Language is used to convert a numeric object to character object.
Syntax: as.character(x) Parameters: x: Numeric ObjectExample 1: Output:
[1] "1" [1] "5" [1] "1.5"Example 2: Output:
[1] "1" "2" "3" "4" [1] "-1" "2" "1.5" "-3"