Skip to content
Back to formatted view

Raw Message

Message-ID: <D9FDE2CF-0D3C-4736-834D-B2E9FC06A534@comcast.net>
Date: 2012-10-04T21:19:22Z
From: David Winsemius
Subject: convert multi dimensional array to list
In-Reply-To: <1349366242890-4645036.post@n4.nabble.com>

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