[R] Identyfing rows with specific conditions revisited

2017-08-14 Thread Ek Esawi
Allaisone 1 allaisone1 at hotmail.com Mon May 22 02:10:10 CEST 2017 Hi All— I am curious as to whether there is a vectorized solution using base R functions, instead of looping and if statements, to the problem below. I have seen several posts that address a similar question which generally ask

Re: [R] Identyfing rows with specific conditions

2017-05-24 Thread David L Carlson
n faster. Also package parallel could use parallel processing to speed things up. David C From: Allaisone 1 [mailto:allaiso...@hotmail.com] Sent: Wednesday, May 24, 2017 7:54 AM To: David L Carlson <dcarl...@tamu.edu>; Bert Gunter <bgunter.4...@gmail.com> Cc: r-help@r-project.or

Re: [R] Identyfing rows with specific conditions

2017-05-23 Thread David L Carlson
ct.org] On Behalf Of Allaisone 1 Sent: Monday, May 22, 2017 4:41 PM To: Bert Gunter <bgunter.4...@gmail.com> Cc: r-help@r-project.org Subject: Re: [R] Identyfing rows with specific conditions Dear Bert I have answered your questions in my last 2 messages. If you did not see them, I will ans

Re: [R] Identyfing rows with specific conditions

2017-05-22 Thread Bert Gunter
__ > From: Bert Gunter <bgunter.4...@gmail.com> > Sent: 22 May 2017 03:11:11 > To: Allaisone 1 > Cc: r-help@r-project.org > Subject: Re: [R] Identyfing rows with specific conditions > > Clarification: > > Does each customer have the same number of meals or do th

Re: [R] Identyfing rows with specific conditions

2017-05-22 Thread Allaisone 1
help@r-project.org Subject: Re: [R] Identyfing rows with specific conditions More clarification: Are your "tables" matrices or data frames? (If you don't know what this means, you need to spend a little time with a e.g. web tutorial to learn). Also, does Meal A Meal B order count? -- i.e. is Me

Re: [R] Identyfing rows with specific conditions

2017-05-21 Thread Bert Gunter
More clarification: Are your "tables" matrices or data frames? (If you don't know what this means, you need to spend a little time with a e.g. web tutorial to learn). Also, does Meal A Meal B order count? -- i.e. is Meal A = 2, Meal B = 15 the same as Meal A = 15 and Meal B = 2? This is

Re: [R] Identyfing rows with specific conditions

2017-05-21 Thread Bert Gunter
Clarification: Does each customer have the same number of meals or do they differ from customer to customer? If the latter, how are missing meals notated? Do they always occur at the (right) end or can they occur anywhere in the row? Presumably each customer ID can have many different meal code