Message-ID: <CAAmySGMbqHZpE_5BKqrukq57MwP--Es+uzpJVeUomynpvEP7Jg@mail.gmail.com>
Date: 2012-12-05T21:44:13Z
From: R. Michael Weylandt
Subject: Changing data frame column headings
In-Reply-To: <alpine.LNX.2.00.1212051320160.1764@salmo.appl-ecosys.com>
On Wed, Dec 5, 2012 at 9:23 PM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> On Wed, 5 Dec 2012, R. Michael Weylandt wrote:
>
>> Can you be more explicit about your problem?
>
>
> Michael,
>
> Data frame contains water chemistry data; site, date, parameter, value.
> The column names after dcast() are, for example, alk_quant, ph_quant,
> tds_quant. I wanted to remove the '_quant' from each column header.
>
> Using names() with a string vector of the new names did not work, so I
> specified each one and names() made the changes.
>
> Rich
I'm afraid I'm still having trouble visualizing -- perhaps you could
work up a reproducible example?
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
Michael