I have a text file with data line items that looks like:
- 1~123~JJJ
- 2~223~AAA
- 3~444~LLL
- 4~567~PPP
- 5~785~QQQ
I'd like to delete the lines that contain the following values:(I have another text file that has these values that need to be deleted) PPP QQQ
To end up with:
- 1~123~JJJ
- 2~223~AAA
- 3~444~LLL
I have never used R and would like to know if there is a way to have this done. If it can be done in a faster way in Python, please let me know. I am open to options.