Lets assume, i have this data.txt file.
s1/km t1/h s2/km t2/h
20 1 40 1
40 2 80 2
60 3
I define myself a function for processing
deleteRows[expr_] := Replace[expr, x_List :> DeleteCases[x, {}], {0, Infinity}]
Then import the file:
data = deleteRows@Import["data.txt", "Table"][[2 ;;]]
Everythings works fine till now. But if I want to select the 3rd column it breaks.
data[[All, 3]]
How do I deal with such situations?