Skip to content
Prev 275735 / 398506 Next

Syntax Check: rshape2 melt()

Rich,

It appears that what you did differently was to dcast the un-melted data.  In addition, you shouldn't need to turn your dates into factors.  I assume that your unaltered data is in tds.anal.

Melt the data this way:
Then, cast the data this way:
Does this do what you wanted?


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