Re: [R] exporting long character vectors to dbf

From: Mulholland, Tom <Tom.Mulholland_at_dpi.wa.gov.au>
Date: Wed 24 May 2006 - 11:50:30 EST


I assume this is (or was) a specification issue. I think write.dbf uses the shapefile library (C not R library) so it applies to the use of shapefiles and just happens to have been included in the foreign package because it has a generic usefullness. (Is that a word?)

Since I very rarely care about the elegance of my solutions, just that they work, I would try saving the file in another format that you can get open office to read and let it do the conversion rather than trying to get R to do it. I'm sure OpenOffice can deal with straightforward text files if that's a last resort.

Tom

> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch]On Behalf Of Eduardo Leoni
> Sent: Wednesday, 24 May 2006 7:13 AM
> To: r-help@stat.math.ethz.ch
> Subject: [R] exporting long character vectors to dbf
>
>
> Hi -
>
> I need to export data to openoffice base, where one of the elements is
> a long character vector (>255 characters.) write.dbf exports it as
> varchar, truncating the data. Any idea how to do this?
>
> thanks,
>
> -eduardo
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 24 11:56:38 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 24 May 2006 - 16:10:20 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.