Displaying 1 result from an estimated 1 matches for "oidflag".
Did you mean:
iflag
2014 Nov 09
4
Getting the most recent dates in a new column from dates in four columns using the dplyr package (mutate verb)
...ost recent date from those 4 date columns into a new column (oiddate) using the mutate() function in the dplyr package. I am getting correct results (NA in the new column) if a given row has all NA's in the four columns. However, the issue is that the date value inserted into the new column (oidflag) is incorrect for 5 of the remaining 6 rows (with a non-NA value in at least 1 of the four columns).
I would appreciate receiving your help toward resolving the issue. Please see the R console and the R script (reproducible example)below.
Thanks in advance.
Pradip
###### from the co...