I have a data matrix of 4 columns and more than 20 thousand rows consisting of entries with numbers, capital letters, dashes, and dots. I want to represent them as their ASCII code, numbers. I tried strtoi, chartoraw, and utf8toint functions but received errors constantly, mainly "number of items to replace is not a multiple of replacement length".
How can I convert the whole matrix to a numeric matrix without any NA coercion?