Remove duplicated by both numeric and date columns

Hi!

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)
and this:
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?

Regards Marit

distinct will work but instead of & use ,