[R] how to read in a txt file with some blanks
Patrick Connolly
p_connolly at slingshot.co.nz
Thu Nov 29 05:41:07 CET 2007
On Wed, 28-Nov-2007 at 06:46PM -0500, affy snp wrote:
|> Hi list,
|> Is there a way to read in a txt file with some blanks? The ideal way could
|> be to replace blanks with NAs.
If the fields are delimited by tabs, the blanks will automatically
become NAs if you use read.table but without any more details, nobody
can tell if that's all you need to do.
--
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
___ Patrick Connolly
{~._.~} Great minds discuss ideas
_( Y )_ Middle minds discuss events
(:_~*~_:) Small minds discuss people
(_)-(_) ..... Anon
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
More information about the R-help
mailing list