sage-
From: hadley wickham [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2008 1:10 PM
To: David Reiner <[EMAIL PROTECTED]>
Cc: r-help@r-project.org
Subject: [SPAM] - Re: [R] casting help please - Found word(s) list error
in the Text body
Hi David,
Does getting rid of the missings he
Hi David,
Does getting rid of the missings help?
prices <- prices[complete.cases(prices), ]
Also, you shouldn't need add.missing=TRUE - what are you trying to do?
Hadley
On Fri, Sep 5, 2008 at 12:12 PM, <[EMAIL PROTECTED]> wrote:
> I have a data.frame which I believe is melted already and am
I have a data.frame which I believe is melted already and am having
trouble casting it to 'wide' format.
It looks something like
> (x <- data.frame(ticker=c(rep("A",5),rep("B",6)), date=c(1:5, 1:6),
value=c(NA,100*exp(rnorm(10,0,.1)
> cast(x, date ~ ticker) # this does what I want with to
3 matches
Mail list logo