I'm writing a function using the Rcpp package that takes an Rcpp character vector as an input. This character vector contains numbers in a character format ("1", "2", "3", etc.) and I was wondering how to convert this vector of character to integer type within the function body?
If I were writing this function using R I could simply pass the character vector to the as.numeric() function in base R.