i'm working on machine learning with R. I want to import a dataset from excel sheet but to be more easy for me to work on it, i would like to transform my date sorted in multiple row for a same observation .
Here, you'll find a photo of the raw dataset
An i would like to get my variables "Hemoglobin, Creatinine, Corrected calcemia, albumin" sorted in columns with one observation (=patient) per row?
Does any one know the right R code to do so? Impossible to get it works with unstack function
Thank you all
R function unstack and Reshape function from R package reshape2