Here's one way to do it using the reshape package:
library('reshape')
cast(A, YEAR ~ TAX, value = 'NUMBER', fill = 0)
YEAR A B
1 2000 2 3
2 2001 2 4
3 2002 3 3
4 2003 1 0
5 2004 0 2
HTH,
Dennis
On Tue, Oct 18, 2011 at 7:51 PM, Michael E. Steiper
wrote:
> Hi, I am a relative newbie to R, so th
Hi, I am a relative newbie to R, so thanks in advance for the patience.
I am interesting in changing a table with year data into a format that
is friendlier for making bar charts. I currently have a table with the
same year appearing a number of times as separate rows. I want to
change this so th
2 matches
Mail list logo