- Fix bug #5807; make both findPeaks and findValleys more robust.


git-svn-id: svn://svn.r-forge.r-project.org/svnroot/quantmod@620 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
- Merge patch #2151. Thanks to Garrett See.


git-svn-id: svn://svn.r-forge.r-project.org/svnroot/quantmod@621 edb9625f-4e0d-4859-8d74-9fd3b1da38cb