R - string to integer conversion with strtoi()

25 Dec 2018

Convert strings to integers of a given base with strtoi

strtoi(c("101010", "11111000101"), base =  2L)
# [1]   42 1989
[ R  function  string  ]