check_single_posix: Check if the object is a single POSIX

View source: R/check_single_posix.R

check_single_posixR Documentation

Check if the object is a single POSIX

Description

Check if the object is a single POSIX

Usage

check_single_posix(x, name = "x", past = FALSE)

Arguments

x

the object to check

name

the name of the object to use in the error message

past

Should the function throw an error when x is in the future? Default is FALSE.

Value

The function gives the single POSIX back. It throws an error when the input is not a single character.

Examples

check_single_posix(Sys.time())

inbo/n2khelper documentation built on March 26, 2022, 1:51 p.m.