I am trying to generate a list in r with two unique components, "x' and "y". In this list I need n of "x" and p of "y".
For example; I want three "dog" and two "cat" so that my list looks like
list = c("dog", "dog", "dog", "cat", "cat")
How do I go about this?