I have to import columns 1,2,3, and 6 from a long (2 * 10^5 rows) file with this structure:
{-17763.1, -8182.33, 26000.9, -0.561626, 5.08542, -28.8257, -17763.1, -8182.33, 26000.9}
{-17762.7, -8181.8, 25999.8, -0.560809, 4.04628, 1.31158, -17763.1, -8182.33, 26000.9}
{-17763.1, -8182.33, 26000.9, -0.561326, 0.0121829, 17.303178201333805208, -17763.1, -8182.33, 26000.9}
I use Import
as follows for column 6:
Import[file, {"Table", "Data", All, 6}, "FieldSeparators" -> {"{", ",", "}"}]
and analogously for the other. It works but it takes forever. How can I speed up the process?
ReadList["filename", Expression][[All, {1, 2, 3, 6}]]
? $\endgroup$