Learn R Programming

briskaR (version 1.0.4)

brk_timeline: Add sequence to element of a sf object

Description

Add column with sequence for each row to a sf object

Usage

brk_timeline(sf, key, from, to, by)

Arguments

sf

object of class sf or sfc

key

a character string used as name of the new column

from

the starting value of the sequence. Of length 1 unless just from is supplied as an unnamed argument.

to

the end (maximal) value of the sequence. Of length 1 unless just from is supplied as an unnamed argument.

by

number: increment of the sequence.