On Jun 25, 2013, at 21:51 , Rui Barradas wrote:

> Hello,
> 
> Your data has commas as decimal points, R uses the period. So the data is 
> read in as strings, not numbers. You can change this by using argument 'dec' 
> of read.table:
> 
> ?read.table
> read.table(...etc..., dec = ",")
> 
> 
> Or you can replace the commas with periods:
> 

Or use read.delim2(). That is what it is for.

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

______________________________________________
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