Patrick,

Thanks. I tried colnames, but it doesn't work. Seems more transformation 
is needed. But now I got names, that's good enough.

Best.

Xumin




Patrick Burns <pbu...@pburns.seanet.com> 
03/15/2010 04:04 PM

To
Xumin Zeng <xumin.z...@abbott.com>
cc

Subject
Re: [R] assign colnames to data






Those are names, not colnames.

See the 'More R key actions' page in
the 'Hints' document mentioned below.

On 15/03/2010 19:55, 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
>
>                [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Patrick Burns
pbu...@pburns.seanet.com
http://www.burns-stat.com
(home of 'Some hints for the R beginner'
and 'The R Inferno')


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to