Re: [R] convert multi dimensional array to list

2012-10-05 Thread Greg Snow
See fortune("toad") for a bit more on this concept. On Thu, Oct 4, 2012 at 3:19 PM, David Winsemius wrote: > > On Oct 4, 2012, at 8:57 AM, anto.r wrote: > >> Hi Michael >> >> thanks! That was the option if I kept it an array. The list format with $ >> sign since it leaves me feeling that the name

Re: [R] convert multi dimensional array to list

2012-10-04 Thread David Winsemius
On Oct 4, 2012, at 8:57 AM, anto.r wrote: > Hi Michael > > thanks! That was the option if I kept it an array. The list format with $ > sign since it leaves me feeling that the names are there and can be easily > accessed. Why would you rather not use the $ sign? It would be better in programing

Re: [R] convert multi dimensional array to list

2012-10-04 Thread arun
12  11  # 2012  12  11 list2$May[,,"tmax"] #  name #year   Alf Que  # 2011  18  16  # 2012  18  16 A.K. - Original Message - From: anto.r To: r-help@r-project.org Cc: Sent: Thursday, October 4, 2012 11:57 AM Subject: Re: [R] convert multi dimensional array to list Hi

Re: [R] convert multi dimensional array to list

2012-10-04 Thread anto.r
Hi Michael thanks! That was the option if I kept it an array. The list format with $ sign since it leaves me feeling that the names are there and can be easily accessed. Why would you rather not use the $ sign? I use R-Studio and there names can be selected from a drop-down list, I have found it

Re: [R] convert multi dimensional array to list

2012-10-04 Thread R. Michael Weylandt
On Thu, Oct 4, 2012 at 2:54 PM, anto.r wrote: > I have an 4D named array (the result of recast() on a dataframe) and would > like to convert it to a list with the names retained. > > Example: >>my.df<-expand.grid(name=c("Alf","Que"), month=c("May","Jun"), > year=c("2011","2012")) >>my.df$tmax<-sam