Thanks all,
I used Gavins approach - unlisting the titles and the replacing names, as my
titles were stored as factors in the data frame as that was the way they were
imported...
Tom
> Subject: Re: [R] Change data frame column names
> From: gavin.simp...@ucl.ac.uk
> To
Try
names(df) <- as.vector(unlist(coltitles))
This will fail if you have more than one row in your data frame coltitles.
Which is why Duncan Murdoch's second email has a better solution.
Given the difficulty in getting the titles out of the data frame in
vector form, I would wonder why you're
On Wed, 2009-07-15 at 14:35 +, Tom Liptrot wrote:
>
>
>
> Hi R helpers,
>
> I have a data frame and I want to change the column names to names I have
> held in another data frame, but I am having difficulty. All data framnes are
> large so i can't input manually. Below is what i have trie
On 7/15/2009 10:35 AM, Tom Liptrot wrote:
Hi R helpers,
I have a data frame and I want to change the column names to names I have held
in another data frame, but I am having difficulty. All data framnes are large
so i can't input manually. Below is what i have tried so far:
df<-data.frame(
On 7/15/2009 10:35 AM, Tom Liptrot wrote:
Hi R helpers,
I have a data frame and I want to change the column names to names I have held
in another data frame, but I am having difficulty. All data framnes are large
so i can't input manually. Below is what i have tried so far:
df<-data.frame(
5 matches
Mail list logo