checkPOSIXct | R Documentation |
Checks that an object is of class POSIXct
.
checkPOSIXct(
x,
lower = NULL,
upper = NULL,
any.missing = TRUE,
all.missing = TRUE,
len = NULL,
min.len = NULL,
max.len = NULL,
unique = FALSE,
sorted = FALSE,
null.ok = FALSE
)
check_posixct(
x,
lower = NULL,
upper = NULL,
any.missing = TRUE,
all.missing = TRUE,
len = NULL,
min.len = NULL,
max.len = NULL,
unique = FALSE,
sorted = FALSE,
null.ok = FALSE
)
assertPOSIXct(
x,
lower = NULL,
upper = NULL,
any.missing = TRUE,
all.missing = TRUE,
len = NULL,
min.len = NULL,
max.len = NULL,
unique = FALSE,
sorted = FALSE,
null.ok = FALSE,
.var.name = vname(x),
add = NULL
)
assert_posixct(
x,
lower = NULL,
upper = NULL,
any.missing = TRUE,
all.missing = TRUE,
len = NULL,
min.len = NULL,
max.len = NULL,
unique = FALSE,
sorted = FALSE,
null.ok = FALSE,
.var.name = vname(x),
add = NULL
)
testPOSIXct(
x,
lower = NULL,
upper = NULL,
any.missing = TRUE,
all.missing = TRUE,
len = NULL,
min.len = NULL,
max.len = NULL,
unique = FALSE,
sorted = FALSE,
null.ok = FALSE
)
test_posixct(
x,
lower = NULL,
upper = NULL,
any.missing = TRUE,
all.missing = TRUE,
len = NULL,
min.len = NULL,
max.len = NULL,
unique = FALSE,
sorted = FALSE,
null.ok = FALSE
)
expect_posixct(
x,
lower = NULL,
upper = NULL,
any.missing = TRUE,
all.missing = TRUE,
len = NULL,
min.len = NULL,
max.len = NULL,
unique = FALSE,
sorted = FALSE,
null.ok = FALSE,
info = NULL,
label = vname(x)
)
x |
[any] |
lower |
[ |
upper |
[ |
any.missing |
[ |
all.missing |
[ |
len |
[ |
min.len |
[ |
max.len |
[ |
unique |
[ |
sorted |
[ |
null.ok |
[ |
.var.name |
[ |
add |
[ |
info |
[ |
label |
[ |
Depending on the function prefix:
If the check is successful, the functions
assertAtomic
/assert_atomic
return
x
invisibly, whereas
checkAtomic
/check_atomic
and
testAtomic
/test_atomic
return
TRUE
.
If the check is not successful,
assertAtomic
/assert_atomic
throws an error message,
testAtomic
/test_atomic
returns FALSE
,
and checkAtomic
/check_atomic
return a string with the error message.
The function expect_atomic
always returns an
expectation
.
Other basetypes:
checkArray()
,
checkAtomic()
,
checkAtomicVector()
,
checkCharacter()
,
checkComplex()
,
checkDataFrame()
,
checkDate()
,
checkDouble()
,
checkEnvironment()
,
checkFactor()
,
checkFormula()
,
checkFunction()
,
checkInteger()
,
checkIntegerish()
,
checkList()
,
checkLogical()
,
checkMatrix()
,
checkNull()
,
checkNumeric()
,
checkRaw()
,
checkVector()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.