Try this:
gsub("\\\\N", "BlankSpace", rawdata$Tenant)
On Sat, Nov 6, 2010 at 8:15 AM, Mohan L <l.mohanphysics@gmail.com> wrote:
> Dear All,
>
> I have .csv file it looks like this :
> rawdata <-
read.csv(file='/home/Mohan/Rworks/tmp/VMList_User.txt',sep='\t'
> , header=FALSE)
>
> > head(rawdata,n=5)
> Tenant Domain Owner Current State
> 1 \\N ROOT admin Running
> 2 \\N ROOT admin Stopped
> 3 \\N ROOT admin Running
> 4 \\N ROOT admin Running
> 5 \\N ROOT admin Running
> 20 DEMO ROOT admin Stopped
> 21 DEMO ROOT admin Stopped
> 22 Demo ROOT admin Stopped
>
>
> The first column contain the \\n up to 19 row. I need to replace the
> \\N value to "Blankspace" . Any help will really appreciated.
>
> Thanks for your time.
>
> Thanks & Rg
> Mohan L
>
> ______________________________________________
> 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.
>
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
[[alternative HTML version deleted]]