Re: [R] How to name the elements of list

2013-01-25 Thread Ivan Calandra
+0100 > From: ivan.calan...@u-bourgogne.fr > To: r-help@r-project.org > Subject: Re: [R] How to name the elements of list > > Hi Tammy, > > Are you just looking for names()? > Not sure, but it can be troublesome to have "-" in a name. > > HTH, > Ivan > &

Re: [R] How to name the elements of list

2013-01-25 Thread Tammy Ma
gogne.fr > To: r-help@r-project.org > Subject: Re: [R] How to name the elements of list > > Hi Tammy, > > Are you just looking for names()? > Not sure, but it can be troublesome to have "-" in a name. > > HTH, > Ivan > > -- > Ivan CALANDRA > Uni

Re: [R] How to name the elements of list

2013-01-25 Thread Ivan Calandra
Hi Tammy, Are you just looking for names()? Not sure, but it can be troublesome to have "-" in a name. HTH, Ivan -- Ivan CALANDRA Université de Bourgogne UMR CNRS/uB 6282 Biogéosciences 6 Boulevard Gabriel 21000 Dijon, FRANCE +33(0)3.80.39.63.06 ivan.calan...@u-bourgogne.fr http://biogeoscience

Re: [R] How to name the elements of list

2013-01-25 Thread R. Michael Weylandt
names(X) <- c("0-10", "11-20") MW On Fri, Jan 25, 2013 at 9:39 AM, Tammy Ma wrote: > > HI, > > > I have the array list: > > X<-vector("list", 2) > > X[[1]] : data frame 1 > X[[2]]: dataframe2 > > > now i want to change index 1 and 2 into: "0-10" , "11-20" ,. > > finally I want to have > X[["0

[R] How to name the elements of list

2013-01-25 Thread Tammy Ma
HI, I have the array list: X<-vector("list", 2) X[[1]] : data frame 1 X[[2]]: dataframe2 now i want to change index 1 and 2 into: "0-10" , "11-20" ,. finally I want to have X[["0-10"]]:dataframe1 X[["11-20"]]:dataframe2 how do I get them? Thanks a lot. Kind regards, Tammy