Re: [R] reshape2 errors on data frame [RESOLVED]

2012-07-05 Thread Rich Shepard
On Thu, 5 Jul 2012, Rui Barradas wrote: Just to give it a try, you've written 'idvars' when it's 'id.vars'. Rui, Oops! That was the problem. No matter how often I looked at the syntax I kept missing that. Hope this helps, Most definitely! Thanks for spotting it, Rich __

Re: [R] reshape2 errors on data frame

2012-07-05 Thread Rui Barradas
Hello, Inline Em 05-07-2012 20:21, Nordlund, Dan (DSHS/RDA) escreveu: -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Rich Shepard Sent: Thursday, July 05, 2012 11:29 AM To: r-help@r-project.org Subject: Re: [R] reshape2 errors

Re: [R] reshape2 errors on data frame

2012-07-05 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Rich Shepard > Sent: Thursday, July 05, 2012 11:29 AM > To: r-help@r-project.org > Subject: Re: [R] reshape2 errors on data frame > > On Thu, 5 Jul

Re: [R] reshape2 errors on data frame

2012-07-05 Thread Rich Shepard
On Thu, 5 Jul 2012, R. Michael Weylandt wrote: What do you mean it won't cooperate? Error message? Michael, I get the command echoed rather than results. Rich __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] reshape2 errors on data frame

2012-07-05 Thread Rui Barradas
Hello, Just to give it a try, you've written 'idvars' when it's 'id.vars'. After correction I no longer have the error. But, as expected, the result 'chem.cast' has lots and lots of NAs. chem.cast <- dcast(chem.melt, site + sampdate + preeq0 + ceneq1 + floor + ceiling ~ param) # Fir

Re: [R] reshape2 errors on data frame

2012-07-05 Thread R. Michael Weylandt
On Jul 5, 2012, at 1:28 PM, Rich Shepard wrote: > On Thu, 5 Jul 2012, Rich Shepard wrote: > >> I wonder if the issue is with the logical columns; I've not used them >> before, only dates, factors, and numerals. I'll try without the logicals >> and see if there's a difference. > > Nope. Same

Re: [R] reshape2 errors on data frame

2012-07-05 Thread Rich Shepard
On Thu, 5 Jul 2012, Rich Shepard wrote: I wonder if the issue is with the logical columns; I've not used them before, only dates, factors, and numerals. I'll try without the logicals and see if there's a difference. Nope. Same problem as before. Someone, please provide a process I can ap

Re: [R] reshape2 errors on data frame

2012-07-05 Thread Rich Shepard
On Thu, 5 Jul 2012, Nordlund, Dan (DSHS/RDA) wrote: The melt syntax you provided in a previous email runs without error on the data that you just supplied. So, your comment that "dput() doesn't want to cooperate" suggests that maybe there is a problem with your waterchem data frame. Maybe some

Re: [R] reshape2 errors on data frame

2012-07-05 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Rich Shepard > Sent: Thursday, July 05, 2012 10:36 AM > To: r-help@r-project.org > Subject: Re: [R] reshape2 errors on data frame > > On Thu, 5 J

Re: [R] reshape2 errors on data frame

2012-07-05 Thread Rich Shepard
On Thu, 5 Jul 2012, John Kane wrote: It would be very helpful to have some sample data to play with. John, dput() doesn't want to cooperate so here are 100 rows from the raw data file that can be input with read.table("sample.dat", header = T, sep = "|"): 'site'|'sampdate'|'preeq0'|'param'

Re: [R] reshape2 errors on data frame

2012-07-05 Thread John Kane
It would be very helpful to have some sample data to play with. str() shows the structure of the data set but it is not the data. Something like dput(head(100)) would probably be enough. John Kane Kingston ON Canada > -Original Message- > From: rshep...@appl-ecosys.com > Sent: Thu,