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
__
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
> -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
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
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
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
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
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
> -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
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'
Sent: Thu, 5 Jul 2012 08:46:31 -0700 (PDT)
> To: r-help@r-project.org
> Subject: [R] reshape2 errors on data frame
>
>I've successfully reformatted data frames from long to wide with
> reshape2,
> but this time I'm getting errors that I want to understand and resol
I've successfully reformatted data frames from long to wide with reshape2,
but this time I'm getting errors that I want to understand and resolve.
Here's the data frame structure and the results of the melt() and dcast()
functions:
str(waterchem)
'data.frame': 128412 obs. of 8 variables:
$
12 matches
Mail list logo