BoulderCodeHub / RWDataPlyr

R package to read and manipulate data from RiverWareTM
3 stars 5 forks source link

combining number of columns in slot agg matrix does not error properly #62

Closed rabutler closed 6 years ago

rabutler commented 7 years ago

Given the following sam:

KeySlots.rdf,Mead.Pool Elevation,AnnMinLTE,1050,meadLt1050
KeySlots.rdf,Mead.Pool Elevation,AnnMinLTE,950,meadLt950
KeySlots.rdf,Mead.Pool Elevation,EOCY,meadEocy
KeySlots.rdf,Powell.Pool Elevation,EOCY,powellEocy

There is no proper error for incorrectly listing "meadEocy" instead of NA or a numeric in the 4th column. The code seems to work, and instead results in the following warning:

Warning messages: 1: In FUN(newX[, i], ...) : NAs introduced by coercion

It should provide an error when creating the sal

rabutler commented 6 years ago

The check in #64 also fixed this.