SyntaxFix
Write A Post
Hire A Developer
Questions
I recommend unlist, which keeps the names.
unlist
unlist(df[1,]) a b c 1.0 2.0 2.6 is.vector(unlist(df[1,])) [1] TRUE
If you don't want a named vector:
unname(unlist(df[1,])) [1] 1.0 2.0 2.6