I have the following data.frame, called tableMS:
X Y Z T 1 375 855 455.7259 3777.856 2 395 969 347.8306 2506.7 3 449 811 309.9512 5
try:
tableMS <- data.frame(tableMS)
Then melt tableMS the way you want.