find.not.Date.value: Find Where Values in the Vector that cannot be Converted to...

find.not.as_date.valueR Documentation

Find Where Values in the Vector that cannot be Converted to Date

Description

find.not.as_date.value is used to find the where in the vector there are values that cannot be converted to Date using as_date in lubridate. find.not.as.Date.value is used to find the where in the vector there are values that cannot be converted to Date using as.Date in base. The result will be the location of the value that cannot be converted to a number in the vector by default.

Usage

find.not.as_date.value(x, where = c("number", "logical"))

find.not.as.Date.value(x, where = c("number", "logical"))

Arguments

x

vector to examine.

where

Choose whether to indicate where there are values that cannot be converted to numbers, either as numbers or logical types.

Note

There is a slight difference between the values that can be converted to Date by lubridate's as_date and those that can be converted by base's as.Date. as_date converts even relatively fuzzy forms if they can be changed to a Date class, while as.Date operates relatively more strictly.

See Also

If a data frame of more than two dimensions is entered, returns the column numbers where the columns contain values that cannot be converted to Date.


indenkun/infun documentation built on April 17, 2025, 2:52 p.m.