Hello everyone,
I have to match individuals in my first table to those in the second. Individuals in the first appear only onetime in this one but in the second they could appear many times. Also, in the second table there are some individuals who don't appear in the first one. And my goal is to delete the row of these individuals who doesn't appear in the first table, hence keep only those I have in the first one.
My two tables are so huge, I can't load them here, sorry.Could anyone help me please?
`(company_top10 <- tibble(Company_id = c(rand(1:2000)))``
(patent_portfolio <- tibble(Company_id = c(1,1,1, 2,2, ... , 2000), Patent_id = c ( rand ("A":"Z")))
I tried with this:
`for (i in company_top10$Company_id){
patent_pf_top10 <- patent_portfolio %>% filter(Company_id == i)
}`
But the problem is tha, it remains only the last filter. Thank you for your answer.