[R] Help required to remove \\N

Mohan L l.mohanphysics at gmail.com
Sat Nov 6 11:15:29 CET 2010


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



More information about the R-help mailing list