Skip to content

tylerhill122/IndicatorQuantiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IndicatorQuantiles

Purpose

The purpose of the indicator quantiles is to flag records that are "unusual" relative to all of the data in the DDI for a given indicator in order to facilitate QA/QC. They are not used to filter any of the data for SEACAR analyses, and the presence of a LowerQuantile or UpperQuantile flag on a DDI record alone does not necessarily indicate there is any issue with the record (neither does the absence of a LowerQuantile or UpperQuantile flag necessarily mean that a data record is correct).

Relevant file locations

Current values can be found in the "LowQuantile" and "HighQuantile" columns of the "Ref_Parameters" worksheet.

The R script described below and the output files can be found in this repository.

Process Steps

IQ_Report_Render.R & IQ_Report.Rmd

  1. The IQ_Report_Render.R script lists all files in a given directory (default is a folder called "SEACARdata" located in the root folder) and filters it to a list of DDI exports to evaluate considering a list of parameters to skip (user-defined).
  2. User sets the desired upper and lower quantile thresholds, as well as a number of standard deviations away from the mean to use for the calculations.
  3. User sets the string value(s) in the DDI exports that should be considered as NA values.
  4. The remainder of the script loops through the file list, returning the values listed below and binding them together by row into a single Excel spreadsheet that is saved to the User's working directory.
  5. For each habitat included in the User's working directory a PDF report will be created in the "output" folder using IQ_Report.Rmd, which provides an overview of questionable / flagged values.
  6. In addition to the PDF reports, each habitat will provide a .txt data output file in the "output/data" folder containing questionable values.

Highlight RCP Programs functionality:

  1. Head to SEACAR DDI Program Matrix and type RCP into the search box
  2. It should automatically filter to show only RCP-managed areas (currently 60 programs)
  3. Click the Excel button beneath the seach box to export "SEACAR Program Matrix.xlsx"
  4. Place this file into the IndicatorQuantiles/data folder for use in the script

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%