Iterate through a character in R

numberString <- "124435456"
 
splittedNumberString <- strsplit(numberString, "")[[1]]
 
for (number in splittedNumberString) {
  print(number)
}
Content Protection by DMCA.com
Please Share