To whom it may concern,
Hello, this is Martin.
I am new in R and I am having a problem with the function unite in the package tidyverse.
I am trying to unite three variables (day, month, year) into a newone (birth_date) that would display dd_mm_yyyy. I use the function unite but I have a problem with missing values. It gives me:
Proof1 <- unite(Proof1, birth_date, day:year, sep = "_", remove = FALSE, na.rm = TRUE)
Errore: This tidyselect interface doesn't support predicates yet.
Contact the package author and suggest using
rlang::last_error() to see where the error occurred.
If I do set na.rm=FALSE, then when there are missing values in the three initial columns I want to unite, it just creates something like this: "NA_NA_NA", so it does not identify missing values. I would like those values to appear as missing values.
Anyone has a solution for this?
Thanks very much!