[R] one long column of data -> three small columns
Patrick Connolly
p_connolly at slingshot.co.nz
Wed Nov 4 06:55:25 CET 2009
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
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
More information about the R-help
mailing list