Displaying 1 result from an estimated 1 matches for "risktmp".
2008 Jan 26
1
Read stata file from internet?
...as I would use read.table():
> require(foreign)
> risk2 <- read.dta('http://www.stat.ucla.edu/projects/datasets/risk_project.dta')
> Error in read.dta("http://www.stat.ucla.edu/projects/datasets/risk_project.dta
> ") :
> unable to open file
Then I try:
> riskTmp <- read.table('http://www.stat.ucla.edu/projects/datasets/risk_project.dta')
> Warning message:
> In read.table("http://www.stat.ucla.edu/projects/datasets/risk_project.dta
> ") :
> incomplete final line found by readTableHeader on 'http://www.stat.ucla.edu/p...