Read attribute table field names with `arcpy.da“ module.

da_fields(table.path)

Arguments

table.path

The file path to the table.

Value

A vector of field names.

Examples

if (FALSE) { # \dontrun{
arcpy$env$workspace = tempdir()
arcpy$env$scratchWorkspace = tempdir()
fc = arcpy$management$CopyFeatures(system.file("CA_Counties",
  "CA_Counties_TIGER2016.shp", package = "arcpy"), "CA_Counties")
da_fields(fc)
} # }