createrows: "CREATE" rows

Description Usage Arguments Value

View source: R/utils.R

Description

Add in empty lines for QuickStatements CREATE rows that mint new QIDs. This is a slightly messy quirk of the QuickStatements format that mints new QIDs via a line containing only "CREATE", so this function is a way to approximate that bevaviour in a tibble

Usage

1

Arguments

items

a vector, data frame or tibble of items (which may or may not contain the keyword "CREATE")

vector

a vector of properties or values which may be expanded based on the items vector

Value

if the vector is NULL, return NULL. Otherwise, if the "CREATE" keyword appears in the items vector, insert blank strings at those positions in the vector.


WikidataR documentation built on Nov. 16, 2021, 5:07 p.m.