Re: [R] Learning to speak R: simple data processing

2013-01-11 Thread ej
Ah! Very nice. Thank you, Arun! -- View this message in context: http://r.789695.n4.nabble.com/Learning-to-speak-R-simple-data-processing-tp4655194p4655237.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

[R] Learning to speak R: simple data processing

2013-01-10 Thread ej
) [1] 75 82 72 88 98 78 88 89 I want to generate a vector with the column position of each row max. The whole vector for the matrix shown above would be: 1 1 1 1 3 2 2 2 Is there some easy, straightforward way to compute such a thing short of looping over the rows and columns of the mat

[R] S4 generic and method arguments -- "expanded signature"

2010-04-25 Thread EJ Nikelski
Hello R-List, ** This e-mail was initially bounced. Please forgive any duplicates.** I'm creating a new generic function and 3 associated methods, in which each of the methods only needs a subset of the arguments specified in the generic. So, I create the generic like so (with the signature d

[R] Passing filenames to the getopt package

2009-11-19 Thread EJ Nikelski
Hi all, I've finally started to use Rscript for my statistical scripting needs, and find I'm being blocked by what must be a very simple problem. Specifically, the command lines for my scripts usually contain: (1) the script name, (2) one or more options and their arguments, and finally, (3)