leppott / MBSStools

Suite of tools for data manipulation and calculations for Maryland DNR MBSS program.
https://leppott.github.io/MBSStools/
GNU General Public License v3.0
3 stars 3 forks source link

PHIcalc - fails on example. #7

Closed leppott closed 7 years ago

leppott commented 7 years ago

data.PHI <- MBSS.PHI PHI <- PHIcalc(data.PHI) Error in fun.df[, name.Remote_020][boo.BioRegion == TRUE]/20 : non-numeric argument to binary operator

leppott commented 7 years ago
  1. Data "MBSS.PHI" included extra rows from Excel that were non-numeric and not intended to be included. Values converted to character even after removing extra lines. Rebuild data file in /data-raw/ProcessData_PHI.R to remove extra lines.

  2. As a safeguard included statement in PHIcalc() to convert data columns to numeric.

leppott commented 7 years ago

Fixed in version 0.0.0.9004