Im building about 200 different plots with pulse as Y-axis and time as X-axis. The pulse data for the plots are extracted from individual csv files while the time data is extracted from a txt file containing info on all the cases. The name of the csv file looks like this: 76P1XBE9_qcpr_perQRS.csv. The time data is extracted from the txt file by using subset() (C1<-subset(
C, ID == "76P1XBE9_log.csv", select = c("ID","state","to","time1", "time2"))). As you see i have to insert 76P1XBE9 at several points.
The code for the plot is complete and working. I could manually insert the casename (eg. 76P1XBE9) at the 3 or 4 places its needed, create the plot and export it to a word or pdf file and then repeat this 200 times.
I would really like R to automatically find the case name in my Excel overview file, insert it where its needed, create the plot and add it to a word file automatically. The final product will therefore be a word document containing all my plots.
Is this possible and how can i go about it?