I am very new to R and have been struggling trying to read a basic ".csv" file 
from a password protected site with the following code:

myURL  
="http://www.frontierweather.com/degreedays/L15N15PowerRegionAverages_10weeks.txt";
test2=read.table(url(myURL),header=TRUE,sep=",")

A 'data.frame' is returned into the workspace, however it is not the data 
contained in the ".csv" file.   I think this occurs because the website where I 
am trying to retrieve the data is password protected.

Is there a way to specify the username and password?

Any guidance would be greatly appreciated.

Sincerely,

Mike

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to