find.not.as_date.value | R Documentation |
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.
find.not.as_date.value(x, where = c("number", "logical"))
find.not.as.Date.value(x, where = c("number", "logical"))
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. |
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.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.