[R] data manipulation

David Winsemius dwinsemius at comcast.net
Mon Dec 19 03:49:12 CET 2016


> On Dec 18, 2016, at 3:31 PM, peter dalgaard <pdalgd at gmail.com> wrote:
> 
> 
>> On 18 Dec 2016, at 19:36 , David Winsemius <dwinsemius at comcast.net> wrote:
>> 
>>> 
>>> On Dec 17, 2016, at 7:57 PM, Duncan Mackay <dulcalma at bigpond.com> wrote:
>>> 
>>> Hi 
>>> 
>>> Coming late to the discussion  - I deleted the original message
>>> I found that I have a cbe.dat that I downloaded some years ago from
>>> cowpertwaite's site .
>>> 
>>> And have attached it
>> 
>> Experience has shown that when you attach a file that you hope to be distributed to the list it needs to have a .txt extension. Leaving it with a .csv, .tsv, or .dat extension will cause it to be dropped by the server, even if the contents of the file are ASCII text.
> 
> That's not the actual mechanism, as far as I understand. If the content-type is text/plain, the server will pass it through just fine. It's the mail program at the sender end that refuses to send .csv files and friends as text/plain, based on the extension. But the net result is essentially the same.

My hypothesis is that all mail clients in common use fail to label the .csv, .dat and .tsv files as text/plain if this explanation is correct. I've been watching the "behavior" of our mail-server for several years now and have not seen _any_ files with an extension other than .txt be successfully passed to subscribers. So clarifying this issue might be possible _if_ we could find a mail client for which we were certain of its labeling characteristics. Does your mail client label such files as text/plain?


>> The URL I offered earlier should have made the file available:
>> https://web.archive.org/web/20130501161812/http://staff.elena.aut.ac.nz/Paul-Cowpertwait/ts/cbe.dat
>> 
>> ... but if there is interest in having it in the Rhelp Archive, I can attach it.
>> 
>> 
> 
> Would be good if someone could ask the authors about what is going on. Better if someone could check licencing issues and put the data somewhere permanent. Still better: convert them to an R package.

It appeared to me that the authors lost their entire university-hosted website. I was unable to find another email address for sending a query to Paul Cowpertwait.


-- 
David. 


> 
>> 
>> -- 
>> David.
>>> 
>>> If it does not get through will do a dput as the file is only 7K
>>> 
>>> Regards
>>> 
>>> Duncan
>>> Duncan Mackay
>>> Department of Agronomy and Soil Science
>>> University of New England
>>> Armidale NSW 2351
>>> Email: home: mackay at northnet.com.au
>>> 
>>> -----Original Message-----
>>> From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Rui Barradas
>>> Sent: Thursday, 15 December 2016 01:19
>>> To: Farshad Fathian; r-help
>>> Subject: Re: [R] data manipulation
>>> 
>>> Hello,
>>> 
>>> Please cc your mails to the list.
>>> As for your data, your url is wrong, you need to contact Massey or maybe 
>>> the source of your information and get a valid internet address.
>>> Without one there's not much we can do.
>>> 
>>> Rui Barradas
>>> 
>>> Em 14-12-2016 12:16, Farshad Fathian escreveu:
>>>> Hello,
>>>> 
>>>> Thanks for your e-mail. I was reading "Introductory Time Series with R"
>>>> by PS. Cowperwait. I am going to run the R codes in this book, but I
>>>> don't access to the input data from
>>>> ("http://massey.ac.nz/~pscoperwait/ts/cbe.dat
>>>> <http://massey.ac.nz/~pscoperwait/ts/cbe.dat>") website.
>>>> 
>>>> Regards,
>>>> 
>>>> On Wed, Dec 14, 2016 at 3:42 PM, Rui Barradas <ruipbarradas at sapo.pt
>>>> <mailto:ruipbarradas at sapo.pt>> wrote:
>>>> 
>>>>  Hello,
>>>> 
>>>>  What do you mean by "gives me something"?
>>>> 
>>>>  xx <- read.csv("http://massey.ac.nz/~pscoperwait/ts/cbe.dat
>>>>  <http://massey.ac.nz/~pscoperwait/ts/cbe.dat>")
>>>>  Error in file(file, "rt") : cannot open the connection
>>>>  In addition: Warning message:
>>>>  In file(file, "rt") :
>>>>     cannot open URL 'http://massey.ac.nz/~pscoperwait/ts/cbe.dat
>>>>  <http://massey.ac.nz/~pscoperwait/ts/cbe.dat>': HTTP status was '404
>>>>  Not Found'
>>>> 
>>>>  Rui Barradas
>>>> 
>>>> 
>>>>  Em 14-12-2016 11:56, John Kane via R-help escreveu:
>>>> 
>>>>      xx <- read.csv("http://massey.ac.nz/~pscoperwait/ts/cbe.dat
>>>>      <http://massey.ac.nz/~pscoperwait/ts/cbe.dat>")
>>>>      gives me something. Since we have no idea of what you are doing
>>>>      I don't know if the data has downloaded correctly
>>>> 
>>>>            On Tuesday, December 13, 2016 1:38 PM, Farshad Fathian
>>>>      <farshad.fathian at gmail.com <mailto:farshad.fathian at gmail.com>>
>>>>      wrote:
>>>> 
>>>> 
>>>>         Hi,
>>>> 
>>>> 
>>>> 
>>>>      I couldn't access to data file about PSCoperwait by
>>>>      http://massey.ac.nz/~pscoperwait/ts/cbe.dat
>>>>      <http://massey.ac.nz/~pscoperwait/ts/cbe.dat>.
>>>> 
>>>> 
>>>> 
>>>>      Looking forward to hearing from you,
>>>> 
>>>> 
>>>>            [[alternative HTML version deleted]]
>>>> 
>>>>      ______________________________________________
>>>>      R-help at r-project.org <mailto:R-help at r-project.org> mailing list
>>>>      -- To UNSUBSCRIBE and more, see
>>>>      https://stat.ethz.ch/mailman/listinfo/r-help
>>>>      <https://stat.ethz.ch/mailman/listinfo/r-help>
>>>>      PLEASE do read the posting guide
>>>>      http://www.R-project.org/posting-guide.html
>>>>      <http://www.R-project.org/posting-guide.html>
>>>>      and provide commented, minimal, self-contained, reproducible code.
>>>> 
>>>> 
>>>> 
>>>>               [[alternative HTML version deleted]]
>>>> 
>>>>      ______________________________________________
>>>>      R-help at r-project.org <mailto:R-help at r-project.org> mailing list
>>>>      -- To UNSUBSCRIBE and more, see
>>>>      https://stat.ethz.ch/mailman/listinfo/r-help
>>>>      <https://stat.ethz.ch/mailman/listinfo/r-help>
>>>>      PLEASE do read the posting guide
>>>>      http://www.R-project.org/posting-guide.html
>>>>      <http://www.R-project.org/posting-guide.html>
>>>>      and provide commented, minimal, self-contained, reproducible code.
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>> 
>>> ______________________________________________
>>> 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.
>>> ______________________________________________
>>> 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.
>> 
>> David Winsemius
>> Alameda, CA, USA
>> 
>> ______________________________________________
>> 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.
> 
> -- 
> Peter Dalgaard, Professor,
> Center for Statistics, Copenhagen Business School
> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> Phone: (+45)38153501
> Office: A 4.23
> Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com
> 
> 
> 
> 
> 
> 
> 
> 
> 

David Winsemius
Alameda, CA, USA



More information about the R-help mailing list