Totally new to R and I trying to solve this using the dplyr package. I want to filter out and return countries that both have Import and Export values and view them separately. I tried a lot of methods such as select and filter but have been unable to do so.
Country Year Quantity Description Import/Export A 2001 10 Frozen Export B 2001 50 Fresh Import B 2004 20 Frozen Export C 2003 30 Frozen Import C 2005 40 Fresh Export C 2006 60 Frozen Import D 2007 290 Fresh Import Ideally, the end result should be this:
Country Year Quantity Description Import/Export B 2001 50 Fresh Import B 2004 20 Frozen Export C 2003 30 Frozen Import C 2005 40 Fresh Export C 2006 60 Frozen Import