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 <[email protected]> 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: [email protected]
>> Sent: Sat, 8 Aug 2015 00:23:23 +0200
>> To: [email protected]
>> 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!
>
> ______________________________________________
> [email protected] 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.
______________________________________________
[email protected] 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.