title: Basic input filename parsing in R
body: <p>I have log files in a directory and I want to generate graphs from each of them. I have written R functions to plot graphs and save in jpg files. My CSV files are named as "_Par1_Par2_Par3_date.log" Is there any way I can get the Par1, Par2 and Par3 values inside the R code to use for some calculations? They are all integers, if that helps. I would like to take all files and generate graphs in a single command vs giving single commands for each of the 100 or so files.</p>