set_lb_date: Set special libbib date attribute on object

View source: R/special-attributes.R

set_lb_dateR Documentation

Set special libbib date attribute on object

Description

Takes an object and a date and sets a special attribute, "lb.date" by reference

Usage

set_lb_date(x, value)

Arguments

x

An object to set the attribute on

value

Either a value of class Date or a string in ISO 8601 date format (yyyy-mm-dd) which will be converted into a Date

Value

Nothing, since the object is modified by reference.

Examples

set_lb_date(mtcars, "2021-05-08")
attributes(mtcars)$lb.date
# [1] "2021-05-08

set_lb_date(mtcars, Sys.Date())


libbib documentation built on Nov. 10, 2022, 6:16 p.m.