Skip to content
Prev 206957 / 398503 Next

Reshaping data with xtabs giving me 'extra' data

Thank you for taking the time to reply Henrique. Although your
solution does take away the zeroes and replaces them with NA's (which
i prefer), it unfortunately seems to reduce all of the other scores to
just '1':
Being Human Doctor Who Red Dwarf
2010-01-19          NA         NA        NA
2010-01-20           1          1         1

This is the first time i think i've used tapply, and after doing a
little searching, i was able to take your sugestion to get the desire
result:
Being Human Doctor Who Red Dwarf
2010-01-19          NA         NA        NA
2010-01-20           2          3         1

Cheers!
Tony Breyal
On 20 Jan, 16:37, Henrique Dallazuanna <www... at gmail.com> wrote: