[R] data manipulation
Rui Barradas
ruipbarradas at sapo.pt
Wed Dec 14 21:56:44 CET 2016
OK, to the op: don't use read.csv, use read.table. Like this:
URL <-
"https://web.archive.org/web/20130501161812/http://staff.elena.aut.ac.nz/Paul-Cowpertwait/ts/cbe.dat"
xx <- read.table(URL, header = TRUE)
str(xx)
Hope this helps,
Rui Barradas
Em 14-12-2016 20:03, David Winsemius escreveu:
>
>> On Dec 14, 2016, at 7:17 AM, David L Carlson <dcarlson at tamu.edu> wrote:
>>
>> It seems to be a data set for use with Introductory Time Series with R by P S Cowpertwait and A V Metcalfe. It is not just the file that is missing, the whole folder is missing:
>>
>> The requested URL /~pscoperwait/ was not found on this server.
>>
>> The Springer website for the book indicates the data sets are located at
>>
>> http://staff.elena.aut.ac.nz/Paul-Cowpertwait/ts/
>>
>> but there is no server at staff.elena.aut.ac.nz. A web search turns up this link:
>>
>> http://www.maths.adelaide.edu.au/andrew.metcalfe/
>>
>> But the link to cbe.dat and the other data sets are dead.
>
> There were images of them in the Wayback Machine. This appears to be the one originally sought.
>
> https://web.archive.org/web/20130501161812/http://staff.elena.aut.ac.nz/Paul-Cowpertwait/ts/cbe.dat
>
> Many others can be found with this search:
>
> https://web.archive.org/web/*/http://staff.elena.aut.ac.nz/Paul-Cowpertwait/*
>
>
>>
>> -------------------------------------
>> David L Carlson
>> Department of Anthropology
>> Texas A&M University
>> College Station, TX 77840-4352
>>
>>
>>
>> -----Original Message-----
>> From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Rui Barradas
>> Sent: Wednesday, December 14, 2016 6:12 AM
>> To: John Kane; Farshad Fathian; r-help at stat.math.ethz.ch
>> Subject: Re: [R] data manipulation
>>
>> Hello,
>>
>> What do you mean by "gives me something"?
>>
>> xx <- read.csv("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
>> 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")
>>> 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> wrote:
>>>
>>>
>>> Hi,
>>>
>>>
>>>
>>> I couldn't access to data file about PSCoperwait by
>>> http://massey.ac.nz/~pscoperwait/ts/cbe.dat.
>>>
>>>
>>>
>>> Looking forward to hearing from you,
>>>
>>>
>>> [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> 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.
>>>
>>>
>>>
>>> [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> 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.
>>
>> ______________________________________________
>> 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
>
More information about the R-help
mailing list