defining field types with R arcgisbinding

367
0
10-08-2018 09:56 AM
by Anonymous User
Not applicable

I am using arc.write() in the R arcgisbinding package to write an sf object to a feature class in a file geodatabase. How do I define the field types of the resulting feature class. For example, I have a field in R which is a character (text) field -  "2018-11-10". When I write this file to a feature class, this field gets interpreted as a 'double' field but I want this field to be interpreted as a 'text' field.

fgdb_path <- file.path("path")
arc.write(file.path(fgdb_path, "layer), data=sf_object)

0 Kudos
0 Replies