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

"TRMAL Céline - CEREMA/DTerMed/DREC/SRILH" Celine.Trmal at cerema.fr
Tue Jul 26 11:33:24 CEST 2016


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
-- 

*Céline TRMAL *
*Ingénieur Chargée d'Etudes
**DREC/Service Risques Inondations, Littoraux et Hydrauliques **- Tél.: 
04 42 24 76 77 *
*Direction Territoriale Méditerranée
*
Centre d’études et d’expertise sur les risques, l’environnement, la 
mobilité et l’aménagement
www.cerema.fr <http://www.cerema.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20160726/85d8cd96/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cerema.png
Type: image/png
Size: 6094 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20160726/85d8cd96/attachment.png>


More information about the R-sig-Geo mailing list