Thanks, it works.
Xumin
Henrique Dallazuanna
03/15/2010 03:57 PM
To
Xumin Zeng
cc
r-help@r-project.org
Subject
Re: [R] assign colnames to data
Try:
names(a) <- b
On Mon, Mar 15, 2010 at 4:55 PM, Xumin Zeng wrote:
> Hi,
>
> Do you know how to assign colnames from
Try:
names(a) <- b
On Mon, Mar 15, 2010 at 4:55 PM, Xumin Zeng wrote:
> Hi,
>
> Do you know how to assign colnames from one list to another, for example.
> a=c(1,2,3)
> b=c("A","B","C")
>
> how can I get the dataset
>
> A B C
> 1 2 3
>
> where A, B and C are colnames. Thanks.
>
> Xumin
>
>
Hi,
Do you know how to assign colnames from one list to another, for example.
a=c(1,2,3)
b=c("A","B","C")
how can I get the dataset
A B C
1 2 3
where A, B and C are colnames. Thanks.
Xumin
[[alternative HTML version deleted]]
__
R-help@r-p
3 matches
Mail list logo