I have data from hard copy papers that must be first manually inputted in excel files to be later processed in R. The data contain multiple readings of a variable (Reading) for different subjects (by ID) at different time points (e.g. 08:10, 08:20 etc.) on different dates (18.08.2014, 19.08.2014). A reference starting time (e.g., 08:00) and reference starting date (e.g., 18.08.2014) for each reading series is available.
The excel file that contains the data will look like this
ID Reading Date Time Ref/Start Time Ref/Start Date 1 12.1 18.08.2014 7:59 8:00 18.08.2014 1 26.34 18.08.2014 8:10 8:00 18.08.2014 1 35.2 18.08.2014 8:20 8:00 18.08.2014 1 30 18.08.2014 8:30 8:00 18.08.2014 1 12 19.08.2014 8:00 8:00 18.08.2014 1 13 19.08.2014 20:00 8:00 18.08.2014 1 12 20.08.2014 8:00 8:00 18.08.2014 These data have to be later processed in R. My goal is to generate a new column that contains the time of each reading in hours after the starting time point of each reading series. so to say to get (y) versus (x) where (x) is the time in hours from the start. I imported this excel file to R now (saved previously as .csv), but I don't know how should I proceed now to generate the new column in R! should I even insert data in another way in excel first?
I hope that I was successful in clarifying what I need and that I can find a helping hand from somebody.
Many thanks in advance.