Skip to content
Prev 275704 / 398506 Next

Syntax Check: rshape2 melt()

Rich,

You should be able to get what you want using the dcast function (I think).

test.melted <- melt(tds.anal)
dcast(test.melted, site + sampdate ~ param)


Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204