Skip to content
Prev 275740 / 398506 Next

Syntax Check: rshape2 melt()

On Thu, 27 Oct 2011, Nordlund, Dan (DSHS/RDA) wrote:

            
I read that, too, Dan. But did not see how that applies to these data.
Nope. Can't. In the database table site, date, param are the compound
primary key. Besides, it makes no sense to have two concentration
measurements of the same chemical on the same day from the same location. I
spent a lot of time getting rid of duplicate records because the same site
was listed with two spellings (one with a hyphen, one without) or some
records were listed as "TDS" while others from the same day and location
were entered in their spreadsheet as "Total Dissolved Solids". That table is
clean, and the .csv copy didn't change any values on its way into R.
I'll do that tomorrow. It's sorta' a Microsoft solution: shut down
computer, spin around it your chair three times, restart computer.

   Too bad there is not more detailed diagnostic information about the source
of the error, or a way to stick a stub of code in the function call to
illucidate just what dcast() thinks it sees.

Thanks,

Rich