Skip to content
Prev 274157 / 398506 Next

Append data to vector form a column of a dataframe

Dear R-community,

When doing this:
I expect something like:
but get:
the same for:

rbind(test[["a"]], 2)
or
rbind(as.vector(test[["a"]]), 2)
or
rbind(t(as.vector(test[["a"]])), 2)

Why is that and how do I extract the "values" from a dataframe to get the
desired result?

Thank you
Dom








--
View this message in context: http://r.789695.n4.nabble.com/Append-data-to-vector-form-a-column-of-a-dataframe-tp3897205p3897205.html
Sent from the R help mailing list archive at Nabble.com.