Hi,
I'm new to R and programming. I don't really know where to start on this. What I'd like to accomplish is having R open a file containing my seperate file names (all .csv files), and then load one file at a time, and produce the same graph from it, and saving it as a pdf but with the same title as the data file.
I've got a script running that opens one file, plots the relevant charts and saves them, but I want to scale this up so that it will load all my files one after the other, and save the graphs without me having to specify each data file name, and graph file name.
Can anyone point me in the right direction/give me an example script I can work through?
Thanks for your help,
Rob.
I'm new to R and programming. I don't really know where to start on this. What I'd like to accomplish is having R open a file containing my seperate file names (all .csv files), and then load one file at a time, and produce the same graph from it, and saving it as a pdf but with the same title as the data file.
I've got a script running that opens one file, plots the relevant charts and saves them, but I want to scale this up so that it will load all my files one after the other, and save the graphs without me having to specify each data file name, and graph file name.
Can anyone point me in the right direction/give me an example script I can work through?
Thanks for your help,
Rob.
Last edited: