sp_add_row_numbers: Function to add a row number variable to a spatial object's...

View source: R/sp_add_row_numbers.R

sp_add_row_numbersR Documentation

Function to add a row number variable to a spatial object's data slot.

Description

Function to add a row number variable to a spatial object's data slot.

Usage

sp_add_row_numbers(sp, name = "id", zero_based = FALSE)

Arguments

sp

Spatial object containing a data slot.

name

Name of variable to use.

zero_based

Should the numbering start at 0 rather than 1?

Author(s)

Stuart K. Grange


skgrange/gissr documentation built on June 20, 2024, 12:02 a.m.