Try this:

unname(dat)

On Tue, Jan 6, 2009 at 6:14 AM, Gundala Viswanath <gundalav@gmail.com>wrote:

> Dear all,
>
> I have the following matrix.
>
> > dat
>         A A A A A A A A A A
>    [1,] 0 0 0 0 0 0 0 0 0 0
>    [2,] 0 0 0 0 0 0 0 0 0 1
>    [3,] 0 0 0 0 0 0 0 0 0 2
>
> How can I change it into:
>         [,1]  [,2]  [,3]  [,4]  [,5]  [,6]  [,7]  [,8]   [,9]   [,10]
>    [1,] 0     0     0      0     0     0     0     0     0       0
>    [2,] 0     0     0      0     0     0     0     0     0       1
>    [3,] 0     0     0      0     0     0     0     0     0        2
>
>
> I tried:
>
> > as.matrix(x)
>
> But failed.
>
>
> - Gundala Viswanath
> Jakarta - Indonesia
>
> ______________________________________________
> 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]]


