Thanks Mr.Winsemius  for the proposed solution ,it worked fine.But when came
to the entire data frame containing 400000 rows ,i used the following code
as proposed by you 

a$date1<-gsub("/","-",a$date)

got the following error:
Error in `$<-.data.frame`(`*tmp*`, "date1", value = character(0)) : 
  replacement has 0 rows, data has 441906

Please provide solution with the problem.

Thanks.
-- 
View this message in context: 
http://n4.nabble.com/Replace-with-in-date-tp1911391p1914541.html
Sent from the R help mailing list archive at Nabble.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