[R] Loading .RData from Internet

zhiji19 zhiji19 at gmail.com
Mon Dec 6 09:35:36 CET 2010

Dear All,

Can you please suggest me a correct way to load the following R data frame
from the internet and save it to the hard drive?

The following is what I tried:
> raceprofiling <-
> read.table("http://rss.acs.unt.edu/Rdoc/library/twang/data/raceprofiling.RData")
> save(raceprofiling, file = 'raceprofiling.RData')

However, when I used dim() to check the dataset, I got:
> dim(raceprofiling)
[1] 11085  1

The correct dimension should be 5000 and 10.

Many Thanks.
View this message in context: http://r.789695.n4.nabble.com/Loading-RData-from-Internet-tp3074103p3074103.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list