Re: [R] help with algorithm

2011-08-01 Thread Paul Hiemstra
On 07/31/2011 05:57 PM, r student wrote: > I'm wondering if anyone can give some basic advice about how to approach a > specific task in R. > > I'm new to R but have used SAS for many years, and while I can muscle > through a lot of the code details, I'm unsure of a few things. > > > Specific ques

Re: [R] help with algorithm

2011-07-31 Thread r student
Thanks for everyone's suggestions. I think looping is the way to go. I have 50 files on which I need to apply the same procedures, so I'll try and wrap my final code in some sort of loop. > > highest and lowest groups)? (I can do this in multiple steps* but wonder > > what the best, "R way" is

Re: [R] help with algorithm

2011-07-31 Thread John Sorkin
I can help with a few questions: Q) How to get means for "by" groups and subset a files based on those (subset highest and lowest groups)? (I can do this in multiple steps* but wonder what the best, "R way" is to do this.) A) aggregate Q) How to create a matrix of plots? (Take 4 separate plots a

Re: [R] help with algorithm

2011-07-31 Thread Joshua Wiley
Hi R Student, On Sun, Jul 31, 2011 at 10:57 AM, r student wrote: > I'm wondering if anyone can give some basic advice about how to approach a > specific task in R. > > I'm new to R but have used SAS for many years, and while I can muscle > through a lot of the code details, I'm unsure of a few th

Re: [R] help with algorithm

2011-07-31 Thread R. Michael Weylandt
Loops, as in any program language, are sometimes unavoidable but this is rarely the case in R. If you have any experience with MATLAB or similar software, you know the importance of working vectorwise and the same principles apply to R. For instance, if I wanted a list of all the squares of numbers

[R] help with algorithm

2011-07-31 Thread r student
I'm wondering if anyone can give some basic advice about how to approach a specific task in R. I'm new to R but have used SAS for many years, and while I can muscle through a lot of the code details, I'm unsure of a few things. Specific questions: If I have to perform a set of actions on a grou