![]() |
VOOZH | about |
as.integer() function in R Language is used to convert a character object to integer object.
Syntax: as.integer(x) Parameters: x: Character ObjectExample 1: Output:
[1] 4 [1] 1 [1] -3 [1] 1024Example 2: Output:
[1] FALSE [1] 1 2 3 4 5 [1] TRUE