Try this:


t(data.frame(x, row.names=1))


On 9/15/08, Paulo Cardoso <pecardoso@netcabo.pt> wrote:
>
> Ok,
>
> My misunderstanding
>
> I thought we could coerce an object like:
>
> Target          V
> 1     A 2159.70509
> 2     B 1311.19066
> 3     C    0.00000
> 4     D  729.31562
> 5     E    0.00000
>
> to a table with that structure...
>
> > -----Original Message-----
> > From: David Winsemius [mailto:dwinsemius@comcast.net]
> > Sent: terça-feira, 16 de Setembro de 2008 3:12
> > To: Paulo Cardoso
> > Cc: 'r'
> > Subject: Re: [R] list?
> >
> >
> > On Sep 15, 2008, at 9:46 PM, Paulo Cardoso wrote:
> >
> > > Hi,
> > >
> > > How the data bellow was obtained? What object is tN?
> > >
> > >> tN
> > >
> > > 1  2  3  4  5  6  7  8 10 11 12
> > > 6 13 10 16 19 12 11  8  2  2  1
> > >
> > > str(tN)
> > > 'table' int [, 1:11] 6 13 10 16 19 12 11 8 2 2 ...
> > > - attr(*, "dimnames")=List of 1
> > >  ..$ : chr [1:11] "1" "2" "3" "4" ...
> > >
> > > I'd like to do the same with another data.
> >
> > It's difficult for us to to know how it was obtained.
> >
> > Below is one plausible manner:
> >
> >  > tn <- rpois(120,6)
> >  > table(tn)
> > tn
> >   1  2  3  4  5  6  7  8  9 10 11 12 13
> >   2  3  9 18 18 22 14 18  8  2  3  1  2
> >
> > --
> > David Winsemius
> > No virus found in this incoming message.
> > Checked by AVG.
> > Version: 8.0.100 / Virus Database: 270.6.21/1672 - Release Date: 15-09-
> > 2008 9:21
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]

