I need to find the minimum of following:
Product Year
N1 1988
N2 1986
N1 2008
N1 2008
N2 1999
N2 2007
I want to find which year product first listed using RScript. For example product N1 was first listed in the year 1988. Product N2 was first listed in 1986. Similarly I have to do for 500000 products.