[R] read.table : fill missing entry with unAvailable

2011-11-16 Thread Mary Kindall
Hi R users, I try to read a data file (tab delimited format) in which some of the entries in a particular field are missing. Is it possible to fill the unavailable data with 'UnAvailable' string while performing read.table() Something like df = read.table(DataFile, header=FALSE,

[R] read.table : fill missing entry with unAvailable [edit]

2011-11-16 Thread Mary Kindall
Hi R users, I try to read a data file (tab delimited format) in which some of the entries in a particular field are missing. Is it possible to fill the unavailable data with 'UnAvailable' string while performing read.table() Something like df = read.table(DataFile, header=FALSE,

[R] read.table : fill missing entry with unAvailable [edit]

2011-11-16 Thread Mary Kindall
I am very sorry for multiple mails. Hi R users, I try to read a data file (tab delimited format) in which some of the entries in a particular field are missing. Is it possible to fill the unavailable data with 'UnAvailable' string while performing read.table() Something like df =

Re: [R] read.table : fill missing entry with unAvailable [edit]

2011-11-16 Thread R. Michael Weylandt
It's going to depend on how the data missing-ness is represented in the table. If you have a csv like 1,2,3 1,,3 4,5,6 You automatically get an NA after using read.csv() -- this can be omitted with the na.omit() command if desired. If missingness is somehow encoded other than an empty spot, it