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 -------------- next part -------------- 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
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 Newmiller The ..... ..... Go Live...
DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live
Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.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." <betanster
at 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 at 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.
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: betanster at gmail.com > Sent: Sat, 8 Aug 2015 00:23:23 +0200 > To: r-help at 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!
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 <jrkrideau at 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: betanster at gmail.com
>> Sent: Sat, 8 Aug 2015 00:23:23 +0200
>> To: r-help at 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 at 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.