I am trying to convert data that I have in my .txt file( few lines below):
nodeID, ts, in_pkts, out_pkts, in_links, out_links
1, 1, 0, 0, 0, 0
1, 2, 2, 2, 0, 0
1, 3, 1, 13, 0, 0
1, 4, 1, 8, 0, 0
1, 5, 1, 2, 0, 0
I would like to get values from the secon column as x, and third as y and then use
plot(x,y)
to get a figure.
I thought about using the read
function but how could I get just second and third column.
Thank you