Re: [Rd] Problem exporting table with many columns to dbf

From: Roger Bivand <>
Date: Wed, 31 Aug 2011 10:35:24 +0000

Nacho Uve <nachouve <at>> writes:

> Hello,
> I'm newbie in R and I have a problem exporting a table with many columns to
> a dbf file.

In many sources, the maximum number of fields is said to be 128 or 255. I have seen a reference to 1024. It varies a great deal with the software being used. DBF is certainly not a good choice for writing objects with many columns. The page refered to on ?write.dbf:

gives 128 fields; on googling for "DBF maximum number of fields", I see that:

gets to 1023/4, but there are reports of very varying behaviour across different applications. Anything over 128 may be tempting fate.

> I found an error when I open the result DBF file on other software and also
> importing it on R again.
> Here a example snippet of the problem (on a GNU/Linux OS):
> Is it a bug?

No, more an infelicity of a legacy format with unspecified extensions.

Hope this clarifies,


> Thank you,
> Nacho V mailing list Received on Wed 31 Aug 2011 - 10:43:36 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Wed 31 Aug 2011 - 12:30:25 GMT.

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

list of date sections of archive