[R] Uploading CSV file into R

peter dalgaard pdalgd at gmail.com
Wed May 11 19:23:41 CEST 2011


On May 11, 2011, at 18:54 , Me wrote:

> Hi, I'm trying to upload two CSV files into R,

What kind of misconception leads you to consider a simple read operation as an "upload", I wonder.

> and I'm having some trouble.
> I've used the instructions I've found on the Web, but they haven't helped so
> far.

Not very informative.

> I'm worried this could be because I'm using a Mac.

Not likely, so am I.... 

> 
> The two data sets are here:
> http://data.un.org/Data.aspx?d=WDI&f=Indicator_Code%3aNY.GNP.PCAP.PP.CD
> http://data.un.org/Data.aspx?d=UNODC&f=tableCode%3a1
> 

> 
> DD <- read.csv("Downloads/UNdata_Export_20110511_130705015.csv")
> summary(DD)
   Country.or.Area      Year          Value       Value.Footnotes
 Algeria   :  29   Min.   :1980   Min.   :  180   Mode:logical   
 Argentina :  29   1st Qu.:1988   1st Qu.: 1282   NA's:5050      
 Australia :  29   Median :1995   Median : 3645                  
 Austria   :  29   Mean   :1995   Mean   : 7517                  
 Bangladesh:  29   3rd Qu.:2002   3rd Qu.: 9825                  
 Belgium   :  29   Max.   :2008   Max.   :65050                  
 (Other)   :4876                                                 
> 




> Thanks for your help. Let me know if you need more information.

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list