[R] how to define a function in R

stephen sefick ssefick at gmail.com
Wed Jul 7 01:06:36 CEST 2010


I don't know this for sure, but I would probably read an introduction to R...

#copy and paste into R
your_fun <- function(argument){argument+1}
your_fun(6)

On Tue, Jul 6, 2010 at 5:48 PM, jd6688 <jdsignature at gmail.com> wrote:
>
> 1. how to write a R script?
> 2.How to write a SAS like macro/generic process to process multiple files by
> using the same funstion in R?
>
> Thanks in advance
> --
> View this message in context: http://r.789695.n4.nabble.com/how-to-define-a-function-in-R-tp2280290p2280290.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.
>



-- 
Stephen Sefick
____________________________________
| Auburn University                                   |
| Department of Biological Sciences           |
| 331 Funchess Hall                                  |
| Auburn, Alabama                                   |
| 36849                                                    |
|___________________________________|
| sas0025 at auburn.edu                             |
| http://www.auburn.edu/~sas0025             |
|___________________________________|

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis



More information about the R-help mailing list