v = "12345"

# data type conversion
as.integer(v)+12345
as.numeric(v)
num =1
as.logical(num)
as.character(v)

# to get the Data type of a variable
class(va)

#if you initialize a variable directly then it will be stored as float
num1 = 12

# to define as a integer
num2 = 12L
print(num2)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: