Say I have a factor `myfac <- as.factor(c("A","A","B","B", "B", "C", "D", "D", "A","A","B","B", "C", "D", "D"))`.

I want to extract unique elements of this factor (not the levels). So the result I want is: `A B C D A B C D`. How can I get this in R?