I'm a newbie to R and I've learnt that a character string like "12.5" can be coerced to a numeric using as.numeric()
function, which gives me the following result.
> as.numeric("12.5")
[1] 12.5
But when I try following, the result doesn't contain the fractional part.
> as.numeric("12.0")
[1] 12
is there a way to keep the fractional part in the result...
Thanks in advance...