[R-sig-Geo] Format data frame of a shp file

Roger Bivand Roger.Bivand at nhh.no
Tue Jul 26 11:35:56 CEST 2016


On Tue, 26 Jul 2016, "TRMAL Céline - CEREMA/DTerMed/DREC/SRILH" wrote:

> Hello
>
> I'm modifying shape file in R.
> When exporting with writeOGR or writeSpatialShape, the data frame has 
> not the good format, too many digits for numeric.

Please provide a reproducible example.

Roger

> I tried format(layer at data[,4],digits=1) but it didn't work?
>
> Any ideas? Thanks in advance
>

-- 
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 91 00
e-mail: Roger.Bivand at nhh.no
http://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en
http://depsy.org/person/434412


More information about the R-sig-Geo mailing list