Takes a sf* and renames it to "ID1":"IDn".

renameGrid(grid, idcol = "id")

Arguments

grid

an object of class ‘sf’.

idcol

column name with names or ids

Value

the same input object with known names