SyntaxFix
Write A Post
Hire A Developer
Questions
You can try as.vector(t(test)). Please note that, if you want to do it by columns you should use unlist(test).
as.vector(t(test))
unlist(test)