作者:用户gokk5efqd3 | 来源:互联网 | 2023-10-10 17:00
Whyisdplyr::one_of()calledthat?Alltheotherselect_helpersnamesmakesensetome,soImwond
Why is dplyr::one_of()
called that? All the other select_helpers
names make sense to me, so I'm wondering if there's an aspect of one_of()
that I don't understand.
为什么dplyr :: one_of()会调用它?所有其他select_helpers名称对我来说都是有意义的,所以我想知道是否有一个我不理解的one_of()方面。
My understanding of one_of()
is that it just lets you select variables using a character vector of their names instead of putting their names into the select()
call, but then you get all of the variables whose names are in the vector, not just one of them. Is that wrong, and if it's correct, where does the name one_of()
come from?
我对one_of()的理解是,它只是让你使用它们的名字的字符向量来选择变量,而不是将它们的名字放入select()调用中,但是你得到名字在向量中的所有变量,而不仅仅是其中之一。这是错的,如果它是正确的,one_of()这个名字来自哪里?
2 个解决方案