This is the repository for an R package that provides code to aggregate responses to the Power Curve Working Group "PCWG_Share_01" exercise. More details of the exercise can be found at http://www.pcwg.org and http://www.pcwg.org/PCWG-Share-01/PCWG-Share-01-Definition-Document.pdf.
- A working installation of R with up-to-date packages. This can be obtained from e.g. http://r-project.org.
ggplot2version 2.2 or higher is required to generate titles, captions, and other annotations on figures.
- A GUI for R. R-studio is a popular option.
- Two or more data files from the Power Curve Working Group Tool, prepared for PCWG_Share_01
You can find the most recent stable version of this code in the releases part of this repository. These different versions are designed to work with different versions of the PCWG Share Tool. You can download the source there.
- Create a directory somewhere and place the contents of the zip file into that directory (let's call this
$root). It is recommended that there be nothing else in the directory. - Load the PWCG tool data files into a 'data' directory in
$root. You can add directories for different sites, etc. - Open
PCWG_share_01_main.rmdin Rstudio. - Modify
project.rootto be$root. - Decide if you intend the results to be public. If you do, set
data.publictoTRUE. This will prevent any details of the individual data sets being shown. Ifdata.publicisFALSE, all results will be printed. - Decide if you want to reanalyze raw data and set
data.analyze.raw. This should beTRUEthe first time you run the code. Afterwards you can set this toFALSEto just generate plots. - Run
PCWG_share_01_main.rmdin Rstudio. Either: - hit
chunks -> run allto run all of the R code and not generate any output PDF or HTML files. - hit
knit HTMLto generate the html results file; this will create an HTML file but will not generate any data in memory - hit
knit PDFto generate the html results file; this will create an HTML file but will not generate any data in memory
Documentation is provided in several forms:
- within
PCWG_share_01_main.rmd - within
PCWG_share_01_main.pdf, which will also contain the results when run usingknitr. - within
PCWG_share_01_main.html, which will also contain the results when run usingknitr.
Please use the issue tracker to report problems or request improvements.
Please use the wiki in this repository as you feel fit.
This software is provided as is, with no guarantees.
See /releases.
- Andy Clifton WindForS Wind Energy Research Cluster
- Peter Stuart, RES