[R] convert multi dimensional array to list

Greg Snow 538280 at gmail.com
Fri Oct 5 21:20:00 CEST 2012


See fortune("toad") for a bit more on this concept.

On Thu, Oct 4, 2012 at 3:19 PM, David Winsemius <dwinsemius at comcast.net> 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 names are there and can be easily
>> accessed. Why would you rather not use the $ sign?
>
> It would be better in programing to learn to use the "[[" operator for which '$' is just a particular application that is less flexible because it won't evaluate its argument.
>
>>
>> I use R-Studio and there names can be selected from a drop-down list, I have
>> found it easier but that could be my lack of proper training in R.
>
> You should be able to do that with column names in dataframes using object[["col"]]
>
>>
>> Cheers
>> Anto
>>
>> --
>> View this message in context: http://r.789695.n4.nabble.com/convert-multi-dimensional-array-to-list-tp4645011p4645036.html
>> Sent from the R help mailing list archive at Nabble.com.
>
> Learn to post context, please. The all too typical habit of Nabble-users in failing to include context is a constant source of annoyance to regular R-help readers.
>
> --
>
> David Winsemius, MD
> Alameda, CA, USA
>
> ______________________________________________
> R-help at 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.



-- 
Gregory (Greg) L. Snow Ph.D.
538280 at gmail.com




More information about the R-help mailing list