I have a data.frame were i need to remove duplicated by two columns, which is a numeric and a date. I have tried this:
df <- df %>% distinct(x & date, keep_all=T)
df <- df [!duplicated(df$x & 'df$date'), ]
but in both cases i get the error "operations are possible only for numeric, logical or complex types".
Could anyone help me out with this?