knitr::opts_chunk$set(echo = TRUE)
Need to find all output directories/files for each kind of analysis and then build a compound file.
This whole procedure needs to be done for each problem type, i.e., for:
# Something like: #cp xxx Temp/xxx_copy
- Deleting the practice runs in the original directory to leave just the real runs.
# Something like: #rm -r ?_marxan_simulated_annealing #rm -r 10_marxan_simulated_annealing
- When we get down to the real experiments, the runsets will be created from scratch and will not have any practice runs in them. I'm only having to do this now because we're still debugging. - Produce a list of all the output files for that problem type and concatenate the output lines from those files into a single cvs file
cd /Users/bill/D/Projects/ProblemDifficulty/ProbDiff_Notes/Temp pwd find /Users/bill/tzar/outputdata/bdpgxupaper_single_action_COR_prob/default_runset | grep "prob_characteristics.csv" > cor.txt cat cor.txt wc < cor.txt
- Concatenate the output lines from those files into a single cvs file
cat cor.txt | xargs -n1 cat > cor.csv cat cor.csv ls -l
- Load the csv file into Excel. - Sort the file by the UUID column. - Since each of the files was written with a row of column headers, delete all but one of those lines so that just the one column header line appears - Resort the whole file telling Excel that there is a column header line. - Repeat the whole procedure for the igraph metrics.
cd /Users/bill/D/Projects/ProblemDifficulty/ProbDiff_Notes/Temp pwd find /Users/bill/tzar/outputdata/bdpgxupaper_single_action_COR_prob/default_runset | grep "bipartite_metrics_from_igraph_pkg_df.csv" > cor_igraph.txt cat cor_igraph.txt wc < cor_igraph.txt cat cor_igraph.txt | xargs -n1 cat > cor_igraph.csv cat cor_igraph.csv ls -l
- And the bipartite metrics...
cd /Users/bill/D/Projects/ProblemDifficulty/ProbDiff_Notes/Temp pwd find /Users/bill/tzar/outputdata/bdpgxupaper_single_action_COR_prob/default_runset | grep "bipartite_metrics_from_bipartite_pkg_df.csv" > cor_bipartite.txt cat cor_bipartite.txt wc < cor_bipartite.txt cat cor_bipartite.txt | xargs -n1 cat > cor_bipartite.csv cat cor_bipartite.csv ls -l
- And the marxan runs that were done on this problem set...
cd /Users/bill/D/Projects/ProblemDifficulty/ProbDiff_Notes/Temp pwd find /Users/bill/tzar/outputdata/bdpgxupaper_single_action_MARXAN_on_COR_BASE_prob/default_runset | grep "rsrun_results.csv" > cor_marxan.txt cat cor_marxan.txt wc < cor_marxan.txt cat cor_marxan.txt | xargs -n1 cat > cor_marxan.csv cat cor_marxan.csv wc < cor_marxan.csv ls -l
- Copy each of the 4 files side by side into a merge file. - Might want to make a merge file that has 5 sheets in it, one for each of the base files and then a combined sheet with the 4 others side by side. - Each of the 4 different output files should have the same number of lines and the same UUID for each line after they've been sorted. - Should probably verify this by adding some columns that compare the UUIDs from each of the files to make sure that all UUIDs on the same line are identical. - Should now have a complete Excel file for the analysis of one type of problem.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.