Cleanest way to convert DataFrame row into a Vector?

question

#1

I am currently using an ugly hack for it:

for row in eachrow(df)
  vec = convert(Array, row)' # notice the transpose
end

The problem is that vec has type Matrix in this case, not Vector. I am sure there is a cleaner way?


#2
for row in eachrow(df)
  v = vec(convert(Array, row)) # no transpose necessary
end

#3

Thank you @pfitzseb.