Re: [R] creating a funct

2015-08-08 Thread John Kane
You sent the data but forgot the code :)

It is better to use dput() to send data. Have a look at 
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
 and http://adv-r.had.co.nz/Reproducibility.html

John Kane
Kingston ON Canada


 -Original Message-
 From: betans...@gmail.com
 Sent: Sat, 8 Aug 2015 00:23:23 +0200
 To: r-help@r-project.org
 Subject: [R] creating a funct
 
 Dear
 
 i am develeping a function, first  I attach r command and later r
 executer
 script, the conection fails and I do not realize why
 
 best regards


FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] creating a funct

2015-08-08 Thread Jim Lemon
Hi Jose,
It looks like it is time for a bit of guessing. For one thing, if you
try to attach an R script you will get an error. I will assume that
you really used source as you seem to have gotten past that step.
You later mention a connection error when you try to execute the
command. As you sent what looks like a TAB separated data file,
perhaps you didn't specify where the data file is correctly. So, if
your data file is stored like this:

/home/jose/data/mydata.tab

your R session is in this directory:

getwd()
 /home/jose/R

and you have a command line like this:

mydata.df-read.table(mydata.tab,sep=\t)

you will get a connection error because R is trying to find:

/home/jose/R/mydata.tab

and it is not there. Finally, it is really helpful if you copy the
error messages that you get into your email, even if they are in
Spanish. Seguir intentando y buena suerte

On Sun, Aug 9, 2015 at 12:04 AM, John Kane jrkrid...@inbox.com wrote:
 You sent the data but forgot the code :)

 It is better to use dput() to send data. Have a look at 
 http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
  and http://adv-r.had.co.nz/Reproducibility.html

 John Kane
 Kingston ON Canada


 -Original Message-
 From: betans...@gmail.com
 Sent: Sat, 8 Aug 2015 00:23:23 +0200
 To: r-help@r-project.org
 Subject: [R] creating a funct

 Dear

 i am develeping a function, first  I attach r command and later r
 executer
 script, the conection fails and I do not realize why

 best regards

 
 FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!

 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
 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.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


[R] creating a funct

2015-08-07 Thread Jose Betancourt B.
Dear

i am develeping a function, first  I attach r command and later r executer
script, the conection fails and I do not realize why

best regards
100 38  1
80  19  5
90  31  2
70  21  6
85  30  3
75  22  5
99  37  1
100 38  1
80  19  5
90  31  2
70  21  6
85  30  3
75  22  5
99  37  1__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Re: [R] creating a funct

2015-08-07 Thread Jeff Newmiller
I think the readers of this mailing list would have to be psychic to know what 
went wrong given that description. This kind of situation usually requires 
in-person help, so I recommend looking for an educational environment that 
offers such assistance... a seminar, university class, tutor, or users group, 
for example.

---
Jeff NewmillerThe .   .  Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
--- 
Sent from my phone. Please excuse my brevity.

On August 7, 2015 6:23:23 PM EDT, Jose Betancourt B. betans...@gmail.com 
wrote:
Dear

i am develeping a function, first  I attach r command and later r
executer
script, the conection fails and I do not realize why

best regards




__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.