HARPgroup / r-dh-ecohydro

A set of R scripts for generating Ecological Limit Functions (ELF), storing the modeled output with REST in drupal VAHydro (dH), and a set of scripts for querying and analyzing processed ELF data
0 stars 1 forks source link

Quantreg.R function subset on DA or MAF #46

Closed jdkleiner closed 6 years ago

jdkleiner commented 6 years ago
  #remove datapoints greater than the ghi threshold
  if (x_metric == 'nhdp_drainage_sqmi') {
    ghi_var <- 'drainage_area_sqmi'
  } else {
    ghi_var <- 'qmean_annual'
  }

  data<-data[!(data[ghi_var] > (ghi)),]
jenniferRapp commented 6 years ago

What does this script do? I really like the grey values that show the data points. I would not recommend removing them from the plots. I believe it adds to the credibility of the work and transparency of our analyses to to keep those points.

Jen

Jennifer Lynn Rapp, Biogeographer and GIS Specialist jrapp@usgs.gov U.S. Geological Survey Virginia and West Virginia Water Science Center 1730 East Parham Road Richmond, VA 23228 w. 804-261-2635

On Tue, Feb 27, 2018 at 4:05 PM, Joey Kleiner notifications@github.com wrote:

remove datapoints greater than the ghi threshold

if (x_metric == 'nhdp_drainage_sqmi') { ghi_var <- 'drainage_area_sqmi' } else { ghi_var <- 'qmean_annual' }

data<-data[!(data[ghi_var] > (ghi)),]


You can view, comment on, or merge this pull request online at:

https://github.com/HARPgroup/r-dh-ecohydro/pull/46 Commit Summary

  • minor user input changes
  • random master changes
  • elf_quantreg.R to handle subset on DA or MAF

File Changes

Patch Links:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HARPgroup/r-dh-ecohydro/pull/46, or mute the thread https://github.com/notifications/unsubscribe-auth/AgIeBcbiCv9Hb9yypQETaUq3c8MU36tHks5tZG4IgaJpZM4SVpEo .