Re: [R] array - how to create "logical expression" for subset dynamically

2017-03-05 Thread Bert Gunter
A great example of why you need to read and follow the posting guide -- this is a plain text list: NO HTML. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic st

Re: [R] array - how to create "logical expression" for subset dynamically

2017-03-05 Thread Rolf Turner
On 04/03/17 06:59, exponential wrote: Hi! I've tried on SO, but without success. Maybe you will be able to help. I have the following array (I use 3-dimensional in this example for simplicity, but it can be 3+ dims - 10,11 or more): a <- c('a1', 'a2', 'a3') b <- c('bb', 'bbb') c <- c('C', 'CC',

[R] array - how to create "logical expression" for subset dynamically

2017-03-05 Thread exponential
Hi! I've tried on SO, but without success. Maybe you will be able to help. I have the following array (I use 3-dimensional in this example for simplicity, but it can be 3+ dims - 10,11 or more): a <- c('a1', 'a2', 'a3') b <- c('bb', 'bbb') c <- c('C', 'CC', 'CCC') dimNa <- list('a' =