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

Error - FlowSum() #10

Closed leppott closed 7 years ago

leppott commented 7 years ago

Matt, email 20170623.

Still get an error message (below) even when the excel sheet being read in only has one site's (ANTI-101-S-2015) worth of data. All other command lines work up until I request results.

Error in model.frame.default(formula = data.calc[, name.DisCell] ~ data.calc[, : invalid type (list) for variable 'data.calc[, name.DisCell]'

If I do it with two sites worth (ANTI-101-S and ANTI-101-X) I get the same error message as before multiple zero values per channel.

Error in try(if (sum(tbl.zero$Freq) != nrow(tbl.zero)) stop(msg.dupChan)) :

More than one zero value for Lateral Distance ('Lat. Loc (m)').

This indicates more than one channel ('SumFlowChannelNum') per sample ('SITEYR'). Or an error in the data.

Please correct then retry. Sample and Channel IDs are presented below:

leppott commented 7 years ago

This is the same data included in the library.

leppott commented 7 years ago

Column names in the file were different in the file being tested. Once changed column names the calculation worked.