c(1.5, -32.43)
#> [1] 1.50 -32.43
1.234567
#> [1] 1.234567
-2e34
#> [1] -2e+34
as.numeric(c("12", "3.45"))
#> [1] 12.00 3.45
Inf
#> [1] Inf
NaN
#> [1] NaN
NA_real_
#> [1] NA
Created on 2020-03-03 by the reprex package (v0.3.0)
c(1.5, -32.43)
#> [1] 1.50 -32.43
1.234567
#> [1] 1.234567
-2e34
#> [1] -2e+34
as.numeric(c("12", "3.45"))
#> [1] 12.00 3.45
Inf
#> [1] Inf
NaN
#> [1] NaN
NA_real_
#> [1] NA
Created on 2020-03-03 by the reprex package (v0.3.0)