How to prevent ifelse() from turning Date objects into numeric objects
I am using the function ifelse()
to manipulate a date vector. I expected the result to be of class Date
, and was surprised to get a numeric
vector instead. Here is an example:
How to prevent ifelse() from turning Date objects into numeric objects
I am using the function ifelse()
to manipulate a date vector. I expected the result to be of class Date
, and was surprised to get a numeric
vector instead. Here is an example:
How to prevent ifelse() from turning Date objects into numeric objects
I am using the function ifelse()
to manipulate a date vector. I expected the result to be of class Date
, and was surprised to get a numeric
vector instead. Here is an example:
How to prevent ifelse() from turning Date objects into numeric objects
I am using the function ifelse()
to manipulate a date vector. I expected the result to be of class Date
, and was surprised to get a numeric
vector instead. Here is an example:
How to prevent ifelse() from turning Date objects into numeric objects
I am using the function ifelse()
to manipulate a date vector. I expected the result to be of class Date
, and was surprised to get a numeric
vector instead. Here is an example:
How to prevent ifelse() from turning Date objects into numeric objects
I am using the function ifelse()
to manipulate a date vector. I expected the result to be of class Date
, and was surprised to get a numeric
vector instead. Here is an example: