Is there a stable (non-deprecated) dplyr way of adding multiple columns based on a vector of names?

后端 未结 0 1595
忘掉有多难
忘掉有多难 2021-01-07 23:30

Let\'s assume I have a simple data.frame:

> d <- data.frame(A=1, B=2)

Now I want to add 3 columns, {X, Y, Z} stored in a vector to it.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题