Skip to content

data manipulation

10 messages · Farshad Fathian, Rui Barradas, John McKown +3 more

#
Hello,

And what has your question to do with R?
Please read the posting guide before posting and when you do, post a 
question where at least the link is correct.

Rui Barradas


Em 13-12-2016 09:23, Farshad Fathian escreveu:
#
On Tue, Dec 13, 2016 at 3:23 AM, Farshad Fathian <farshad.fathian at gmail.com>
wrote:
?First off, this post is nearly useless. You don't tell us what you tried
to do. And you didn't tell us what error message you got.?


?From a fast test, the reason is that the above URL is invalid.. It gets a
404 error. That is "requested document does not exist." You can't read that
which does not exist. Why doesn't it exist? I don't know - ask Massey
University of New Zealand.

  
    
#
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.
#
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:
#
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.

-------------------------------------
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:
______________________________________________
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.
#
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 Winsemius
Alameda, CA, USA
#
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:
1 day later
#
It downloaded a file for me earlier but I am not getting the 404 error and I did not bother to save the download.? Shrug.
On Wednesday, December 14, 2016 6:57 AM, John Kane via R-help <r-help at r-project.org> wrote:
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.
#
That should read "now" instead of "not"
On Thursday, December 15, 2016 6:49 PM, John Kane <jrkrideau at yahoo.ca> wrote:
It downloaded a file for me earlier but I am not getting the 404 error and I did not bother to save the download.? Shrug.
On Wednesday, December 14, 2016 6:57 AM, John Kane via R-help <r-help at r-project.org> wrote:
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.