I have data with few column in fonction of the number of tests done by a patient. All the patients haven't done the same number of test. I want to recup in a new column only the last test done by a patient.
My data looks like something like that :
id / name / resultatD1/resul_d1/diff_d1/ resultatD2/resul_d2/diff_d2/resultatD3/resul_d3/diff_d3
06/james/P/0/12/ / / / / / /
14/franck/N/0/22/I/0/4/I/3/7/
24/smith/N/0/15/P/0/40/ / / /
and i want something like that (lt for last test):
id / name / resultatD1/resul_d1/diff_d1/ resultatD2/resul_d2/diff_d2/resultatD3/resul_d3/diff_d3/ resultat_lt/resul_lt/diff_lt
06/james/P/0/12/ / / / / / /P/0/12
14/franck/N/0/22/I/0/4/I/3/7/I/3/7
24/smith/N/0/15/P/0/40/ / / /P/0/40
I really hope you can help me, thank you for your time!