GetNextId: Get Next ID (CRUD)

View source: R/getNextID.R

GetNextIdR Documentation

Get Next ID (CRUD)

Description

This function gets the next ID in a data set as part of a CRUD series of functions. Used in the create data function.

Usage

GetNextId()

Examples

CreateData <- function(data) {
data <- CastData(data)
rownames(data) <- GetNextId()
if (exists("responses")) {
  responses <<- rbind(responses, data)
} else {
  responses <<- data
}
}

jsdeherrera/shinyBoots documentation built on March 9, 2024, 3:03 a.m.