Re: [R] Ignore blank columns when reading a row from a table

From: Bernardo Rangel Tura <>
Date: Sun, 06 Jul 2008 12:07:05 -0300

Em Ter, 2008-07-01 às 13:49 -0400, escreveu:
> Hi,
> I am extracting data from a table where the rows have different column lengths,
> and empty columns have NA in them. Whenever I extract a row with some empty
> columns, the resulting vector carries all the NAs. Is there a way to ignore the
> empty columns?
> Thanks,
> -Nina


You can use scan() and argument what, if necessary you can use the argument fill=T to solve a diferent coluns length. use ?scan to get help

Bernardo Rangel Tura, M.D,MPH,Ph.D
National Institute of Cardiology

P.S. I learn this tip read: "Data Manipulation with R"

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 06 Jul 2008 - 15:12:06 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 06 Jul 2008 - 15:31:56 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive