I have a large (rectangular) vector of strings, e.g:
my.strings <- c("1234567", "1234567", "1234567", "1234567")
which I would like to convert to a matrix:
# [,1] [,2] [,3] [,4] [,5] [,6] [,7]
# [1,] 1 2 3 4 5 6 7
# [2,] 1 2 3 4 5 6 7
# [3,] 1 2 3 4 5 6 7
# [4,] 1 2 3 4 5 6 7
Is there a simple way to do this in R? (Unfortunately, yes the strings of numbers are indeed character strings and not numeric.)