I have a csv file that looks like this:
A, B, C,
1, 2 1, 3,
3, 1, 0,
4, 1, 0 5,
...
is it possible to set the na.string to assign all fields with space to NA (e.g. something like regex
function(x){x[grep(patt="\\ ", x)]<-NA;x
}), i.e.
A, B, C,
1, NA, 3,
3, 1, 0,
4, 1, NA,