I have some whitespace-separated matrix data that I read with Import[..., "Table"]. The data contained mixed strings and numbers (the strings are for row and column names).
I noticed this weird behaviour:
ImportString["123c", "Table"]
(* ==> {{123}} *)
Mathematica ate the letter c!! Why?
It doesn't eat any other letters:
ImportString["123a", "Table"]
(* {{"123a"}} *)
ImportString["123e", "Table"]
(* {{"123e"}} *)
What is the explanation and what is a good workaround?
Update:
It seems that this happens even if the labels is quoted in the file:
ImportString["\"24c\"", "CSV"]
(* ==> {{24}} *)
123cas some non-string datatype, I just can't figure out what. – Szabolcs Jul 18 '14 at 16:50StringFormat["123c"]attempt. I do not think this is a good way to make functions. This is all fuzzy type programming. What does "Attempt" actually mean? How do I grade this attempt? A grade? B grade? 85% attempt? A function should be clear. It should tell exactly what is the input and what is the output. – Nasser Jul 18 '14 at 17:17"CurrencyTokens" -> Noneshould be the default. – Szabolcs Jul 18 '14 at 18:40