On Tue, 03-Nov-2009 at 12:26PM -0800, frenchcr wrote:

|> > How do i do this?
|> > 
|> 
|> ok, so matrix(x, 3, 3) works.
|> 
|> what if i have 
|> 
|> a
|> b
|> c
|> a
|> c
|> a
|> c
|> 
|> and want
|> 
|> a b c
|> a   c
|> a   c
|> 
|> ??

Hint 1: A matrix can use characters or numerics
Hint 2: "" can be considered as a character.

HTH

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___    Patrick Connolly   
 {~._.~}                   Great minds discuss ideas    
 _( Y )_                 Average minds discuss events 
(:_~*~_:)                  Small minds discuss people  
 (_)-(_)                              ..... Eleanor Roosevelt
          
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

______________________________________________
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.

Reply via email to