Dear all I am very intersted in writing my own function to deal with some complicated task, but I don't know how to start. I can't find detial material with examples teaching me how to write my own functions. Can anyone help me and recommend me some learning material? Many Thanks Ted -- View this message in context: http://www.nabble.com/Help-in-writing-my-own-function-tp22161020p22161020.html Sent from the R help mailing list archive at Nabble.com.
That is covered in chapter 10 of the Intro to R document included in the distribution. On Mon, Feb 23, 2009 at 7:56 AM, tedzzx <zengzhenxing at gmail.com> wrote:> > Dear all > > I am very intersted in writing my own function to deal with some complicated > task, but I don't know how to start. I can't find detial material with > examples teaching me how to write my own functions. Can anyone help me and > recommend me some learning material? > > Many Thanks > > Ted > -- > View this message in context: http://www.nabble.com/Help-in-writing-my-own-function-tp22161020p22161020.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve?
On 2/23/2009 7:56 AM, tedzzx wrote:> Dear all > > I am very intersted in writing my own function to deal with some complicated > task, but I don't know how to start. I can't find detial material with > examples teaching me how to write my own functions. Can anyone help me and > recommend me some learning material?Chapter 10 of "An Introduction to R" would be a good place to start. http://cran.r-project.org/doc/manuals/R-intro.html> Many Thanks > > Ted-- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894
Hi Ted, I strongly recommend a book: S programming by W.N Venables and B.D Ripley ISBN: 0387-989668 It is easy to read. I love this book so much. Maybe someone has better idea. Super Chunhao> Date: Mon, 23 Feb 2009 04:56:18 -0800 > From: zengzhenxing@gmail.com > To: r-help@r-project.org > Subject: [R] Help in writing my own function > > > Dear all > > I am very intersted in writing my own function to deal with some complicated > task, but I don't know how to start. I can't find detial material with > examples teaching me how to write my own functions. Can anyone help me and > recommend me some learning material? > > Many Thanks > > Ted > -- > View this message in context: http://www.nabble.com/Help-in-writing-my-own-function-tp22161020p22161020.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code._________________________________________________________________ Show them the way! Add maps and directions to your party invites. [[alternative HTML version deleted]]