Convert strings to integers according to the given base using the C function strtol, or choose a suitable base following the C rules.
strtoi(x, base = 0L)
| Parameter | Description |
|---|---|
x |
a character vector, or something coercible to this by as.character. |
base |
an integer which is between 2 and 36 inclusive, or zero (default). |
# NOT RUN {
strtoi(c("0xff", "077", "123"))
strtoi(c("ffff", "FFFF"), 16L)
strtoi(c("177", "377"), 8L)
# }