Skip to content

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

3 messages · Mary Kindall, 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 may be
a bit harder.

Michael
On Wed, Nov 16, 2011 at 4:26 PM, Mary Kindall <mary.kindall at gmail.com> wrote: