GLEON / rLakeAnalyzer

An R version of Lake Analyzer
43 stars 26 forks source link

schmidt.stability(): index error in sal[numD + 1] = sal[numD + 1] #38

Closed shatwell closed 9 years ago

shatwell commented 9 years ago

Hi there,

In schmidt.stability(), I think sal[numD + 1] = sal[numD + 1] should be sal[numD + 1] = sal[numD] The current code adds an NA to sal instead of copying the last element.

lawinslow commented 9 years ago

Confirmed. This is a bug. (that line of code makes no sense as is anyway)