Question: How to close recent activities(press and hold button home) when activity started from services?

Tried `android:excludeFromRecents="true"` and `android:noHistory="true"`, but it works if I close manual from `myActivity`. But, when close `finish()` from services using `Broadcast Receiver`, it doesn't work.

So, how to close recent activities when it close automatic from services?
Please help . .

Answer: 
If you want to use `subset`, you could try:

```
  subset(df, !duplicated(subset(df, select=c(allrl, RAW.PVAL))))
 # RAW.PVAL GR allrl  Bak
 #1     0.05 fr   EN1  B12
 #3     0.45 fr   EN2  B10
 #4     0.35 fg   EN2 B066

```

But, I think @thelatemail's approach would be better

```
  df[!duplicated(df[c("RAW.PVAL","allrl")]),]

```
Use `unique()` to remove the duplicate values.