s-news
[Top] [All Lists]

Re: Stack Column Question

To: "'Richard M. Heiberger'" <rmh@temple.edu>, <s-news@lists.biostat.wustl.edu>
Subject: Re: Stack Column Question
From: "Bert Jacobs" <b.jacobs@pandora.be>
Date: Fri, 24 Jun 2005 15:53:38 +0200
Importance: Normal
In-reply-to: <c9cc2f2b.11742ae9.827fa00@po-d.temple.edu>
Fast Solution but I how do I repeat columns 1:4, stack columns 5:164
into a column "Data" and create a group column "Period" with the
colnames.

-----Original Message-----
From: s-news-owner@lists.biostat.wustl.edu
[mailto:s-news-owner@lists.biostat.wustl.edu] On Behalf Of Richard M.
Heiberger
Sent: 24 June 2005 15:31
To: Bert Jacobs; s-news@lists.biostat.wustl.edu
Subject: Re: [S] Stack Column Question

> tmp <- data.frame(matrix(0,3600,164))
> date()
[1] "Fri Jun 24 09:29:49 EDT 2005"
> tmp2 <- unlist(tmp[,1:160])
> date()
[1] "Fri Jun 24 09:29:53 EDT 2005"
> length(tmp2)
[1] 576000
> 


4 seconds
--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news


<Prev in Thread] Current Thread [Next in Thread>