Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从闪亮的数据中删除行?
只假设数据
X 1 2 3 4 5 6 7 8 9
现在我想通过删除 7、8 和 9 来使用变量“X”创建新的数据集“Y” 。我不想 在“Y”变量中看到 7,8 和 9。
你可以帮帮我吗...
尝试:
Y<-X[X<7]
只会将小于 7 的 x 值放入 Y