Skip to content

reshape: melt and cast

3 messages · stephen sefick, Matthew Pickard

#
I would make this minimal. In other words, use an example data set, dput,
and use output of dput in a block of reproducible code. I don't understand
exactly what you want, but does sum work? If there is more than one record
for a given set of factors the sum is the sum of the counts. If only one
record, then the sum is the same as the original number.

On Tue, Sep 1, 2015 at 10:00 AM, Matthew Pickard <
matthew.david.pickard at gmail.com> wrote:

            

  
    
#
Yep, that works. Thanks, Stephen. I should have drawn the parallel with
Excel Pivot tables sooner.
On Tue, Sep 1, 2015 at 9:36 AM, stephen sefick <ssefick at gmail.com> wrote:

            

  
  
#
You are welcome.

On Tue, Sep 1, 2015 at 10:44 AM, Matthew Pickard <
matthew.david.pickard at gmail.com> wrote: