da_update: Update Table with arcpy.da

View source: R/tables.r

da_updateR Documentation

Update Table with arcpy.da

Description

Update a table (e.g., attribute table of a layer) with the arcpy.da module.

Usage

da_update(table.path, d)

Arguments

table.path

The file path to the table.

d

The data to write to table.path, with the same number of rows as the table. Column names must match field names of the table.

Value

(Invisible) The path to the table, i.e. table.path.

Examples

## Not run: 
arcpy$env$workspace = tempdir()
arcpy$env$scratchWorkspace = tempdir()
fc = arcpy$management$CopyFeatures(system.file("CA_Counties",
  "CA_Counties_TIGER2016.shp", package = "arcpy"), "CA_Counties")
d = da_read(fc, "ALAND")
d["ALAND"] = d$ALAND+ 5000
da_update(fc, d)

## End(Not run)


mkoohafkan/arcpy documentation built on Feb. 5, 2024, 9:55 a.m.