2
I have an array with the following integer values (or strings):
x <- c("1781818", "178181800", "92561781818", "1781810")
I’d like to put a semicolon to separate the last two digits, so they stay that way:
y <- c("17818.18", "1781818.00", "925617818.18", "17818.10")
I already researched the use of the function format
and readr::parse_number
, but I haven’t found a solution yet.