Hi Jason,
I did not have time to actually test this code so there may be typos
and some of it may not work as I thought. I would create a copy of
your data in a test directory and experiment with that until you are
confident you have everything working how you want . As a side note,
since you ar
n
email]<http://user/SendEmail.jtp?type=node&node=2280308&i=0>[mailto:
r-help-boun...@r-
project.org] On Behalf Of jd6688
Sent: Tuesday, July 06, 2010 3:49 PM
To: [hidden email]<http://user/SendEmail.jtp?type=node&node=2280308&i=1>
Subject: [R] how to define a function i
[hidden email]<http://user/SendEmail.jtp?type=node&node=2280308&i=1>
> > Subject: [R] how to define a function in R
> >
> >
> > 1. how to write a R script?
> > 2.How to write a SAS like macro/generic process to process multiple
> > files by
> >
Hi Joshua:
Here are what i am going to accomplish:
I have 400 files named as xxx.txt. the content of the file looks like the
following:
namecount
1. aaa 100
2. bbb2000
3. ccc300
4. ddd 3000
more that 1000 rows in each files.
these are the areas i need help:
1.
Chapter 10 of 'An Introduction to R' has the
suggestive title "Writing your own functions".
Isn't that the *first* place you would look?
-Peter Ehlers
On 2010-07-06 20:57, jd6688 wrote:
Thanks Joshua for the example which has been great help me to start.
Wish you the best
Jason Ding
On Tu
Thanks Joshua for the example which has been great help me to start.
Wish you the best
Jason Ding
On Tue, Jul 6, 2010 at 9:23 PM, Joshua Wiley-2 [via R] <
ml-node+2280373-448579502-312...@n4.nabble.com
> wrote:
> Hello,
>
> As others have said, its hard to give specific advice without specific
Hello,
As others have said, its hard to give specific advice without specific
needs, but that's okay; I made up some examples needs and some (rather
silly) code that might handle it. Depending what you need to do, it
may help you get started. I tried to explicitly name all the
arguments in any f
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of jd6688
> Sent: Tuesday, July 06, 2010 3:49 PM
> To: r-help@r-project.org
> Subject: [R] how to define a function in R
>
>
> 1. how to write a R scr
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 wrote:
>
> 1. how to write a R script?
> 2.How to write a SAS like macro/generic process to process m
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 maili
10 matches
Mail list logo