I have a vector like below
tmp <- c(a=1, b=2, c=3)
a b c
1 2 3
I want to flatten this vector to get only 1, 2, 3
.
I tried unlist(tmp)
but it still gives me the same result.
How to achieve that efficiently?
See Question&Answers more detail:os