Re: [R] melt causes errors when characters and values are used

2010-12-11 Thread Dennis Murphy
Hi: On Fri, Dec 10, 2010 at 6:47 AM, Daniel Brewer wrote: > Hello, > > I am finding that the melt function from the reshape library causes > errors when applied to a data.frame that contains numeric and character > columns. For example, > In this case, thankfully so - it's warning that you're

[R] melt causes errors when characters and values are used

2010-12-10 Thread Daniel Brewer
Hello, I am finding that the melt function from the reshape library causes errors when applied to a data.frame that contains numeric and character columns. For example, melt(id.vars="ID",data.frame(ID=1:3,date=c("a","b","c"),value=c(1,4,5))) ID variable value 1 1 date a 2 2 date