Skip to content

Format data frame of a shp file

2 messages · "TRMAL Céline - CEREMA/DTerMed/DREC/SRILH", Roger Bivand

#
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.
I tried format(layer at data[,4],digits=1) but it didn't work?

Any ideas? Thanks in advance
#
On Tue, 26 Jul 2016, "TRMAL C?line - CEREMA/DTerMed/DREC/SRILH" wrote:

            
Please provide a reproducible example.

Roger