is.double2 | R Documentation |
is.double()
for Comma-Decimal InputThis works like is.double()
and as.double()
, but is vectorised and can also check (and transform) comma-decimal input such as "0,1"
.
is.double2(x, dec = c(".", ","))
as.double2(x, dec = c(".", ","))
x |
vector of values |
dec |
characters to be treated as comma |
is.double(0.1)
is.double("0.1")
is.double("0,1")
is.double2(0.1)
is.double2("0.1")
is.double2("0,1")
is.double(c(0.1, "0.1", "0,1"))
is.double2(c(0.1, "0.1", "0,1"))
as.double(c(0.1, "0.1", "0,1"))
as.double2(c(0.1, "0.1", "0,1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.