Closed jzhu20 closed 8 months ago
Thanks @TinyMarsh. My response and comments are:
At first, I received "Rscript command not found" which might be a common issue. Path of R needs to be added using, e.g. $Env:PATH += "C:\Program Files\R\R-4.3.2\bin"
I changed the R script again and updated renv.lock file as well. I kept both ways of importing multiple files as Option 1 (command line) and Option 2 (all csv files in the directory) and added one line of combining dataframes in option 1, because we will need to combine all the simulation results (csv files) to take weighted mean and plot. From my perspective, option 2 is more convenient when importing a large number of csv files, like 50 or 100. Option 1 is more flexible if we need to import, e.g. 20 of the 50 simulation results. We can keep both maybe.
Actually I've got error message when running R script, as described in #1.
Sorry I tried to make changes in this PR but ended up creating a new PR #4 . Apologize for this.
@jzhu20 did you have any code changes in this PR that you wanted to keep? If not we can close this PR and continue with #4.
Add my commands on importing multiple data files in a directory (can be modified) Update plotting and add grid-plotting commands Update reshaping and calculating difference Re-structure the script