a=c(10,20,10,10,40,50,20,30)
b=c(10,30,10,20,0,50,30,30)
print("Original data frame:")
ab = data.frame(a,b)
print(ab)
print("Duplicate elements of the said data frame")
print(Duplicate(ab))
print("Unique rows of the said data frame")
print(unique(ab))
To embed this program on your website, copy the following code and paste it into your website's HTML: