On Mon, 24 Oct 2011, B77S wrote:
The following might not be exactly the way to do this, but see the package
"reshape" and the line of code following your data:
Thank you, B77S. Bert pointed me to reshape and reshape2. I'll read the
help pages for them before responding. I'll be out of the of
The following might not be exactly the way to do this, but see the package
"reshape" and the line of code following your data:
df <- structure(list(site = structure(c(1L, 1L, 2L, 4L, 2L, 2L, 2L,
3L, 3L, 3L, 3L, 3L, 3L, 3L), .Label = c("BC-0.5", "BC-2", "BC-3",
"BC-4"), class = "factor"), sampda
On Mon, 24 Oct 2011, B77S wrote:
Why not format the data like this:
site sampledate SO4 TDS NA Mg Cond Cl Ca
Because I don't know how to reformat the base data frame (chemdata) to
achieve this.
It seems to me that you summary doesn't make any sense. Those quantiles
are meaningless as they
On Mon, 24 Oct 2011, Daniel Nordlund wrote:
you need to reorganize your data so that you have a single record (i.e.
row) for each site/sampdate combination with the quant value for each of
your params save in a column named by the param value (I don't remember
all the param names so I used pn).
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of Rich Shepard
> Sent: Monday, October 24, 2011 2:17 PM
> To: r-help@r-project.org
> Subject: Re: [R] Syntax Help for xyplot()
>
> On Mon, 24 Oct
Why not format the data like this:
site sampledate SO4 TDS NA Mg Cond Cl Ca
i.e. with a column for each parameter?
It seems to me that you summary doesn't make any sense. Those quantiles are
meaningless as they encompass all the parameters. Am I missing something?
Rich Shepard wrote:
>
>
On Mon, 24 Oct 2011, Dennis Murphy wrote:
xyplot('TDS'$quant ~ 'Cond'$quant | burns.tds.anal$site )
Dennis,
xyplot('TDS'$quant ~ 'Cond'$quant | burns.tds.anal$site)
Error in "TDS"$quant : $ operator is invalid for atomic vectors
I tried that earlier today.
Rich
__
On Mon, 24 Oct 2011, Bert Gunter wrote:
Where's TDS? -- 'cause it's sure not in your data frame.
Bert,
summary(burns.tds.anal)
sitesampdate param quant
BC-3 :460 Min. :1992-03-27 Ca : 65 Min. : 1.00
BC-2 :107 1st Qu.:1994-09-21 Cl :148
Hi:
You should perhaps do the following in the xyplot() call (untested
because the TDS and Cond data frames are missing):
xyplot('TDS'$quant ~ 'Cond'$quant | burns.tds.anal$site )
assuming that all three atomic objects have the same length. Caveat emptor.
Dennis
On Mon, Oct 24, 2011 at 2:17 PM
Where's TDS? -- 'cause it's sure not in your data frame.
-- Bert
On Mon, Oct 24, 2011 at 2:17 PM, Rich Shepard wrote:
> On Mon, 24 Oct 2011, Rich Shepard wrote:
>
> Perhaps because it's Monday I'm not successfully writing the xyplot()
>> command to show the quant, for example, for TDS by site.
On Mon, 24 Oct 2011, Rich Shepard wrote:
Perhaps because it's Monday I'm not successfully writing the xyplot()
command to show the quant, for example, for TDS by site. What I need to do
is plot the quant values for TDS vs. Cond, TDS vs. SO4, etc.
I should have provided some of the attempts:
11 matches
Mail list logo