[R] import .csv file into R
    Rui Barradas 
    rui1174 at sapo.pt
       
    Thu Feb 16 17:30:04 CET 2012
    
    
  
Hello,
> I read  a .csv file into R
> 
> with the following command:
> 
> A<-read.csv2(file="Mappe3.csv")
> 
> It worked fine, except that I would like to get rid of the points between
> the words and get spaces instead like I have got in the .csv file. 
Try
gsub('\\.', ' ', A)
(And see ?regexpr and ?gsub)
Rui Barradas
--
View this message in context: http://r.789695.n4.nabble.com/import-csv-file-into-R-tp4394533p4394573.html
Sent from the R help mailing list archive at Nabble.com.
    
    
More information about the R-help
mailing list