For*_*t17 3 r list
x <- list("item one", "item two", "item three")
如果我想在 Python 中选择除最后一项之外的所有项,我会使用x[:-1]. 我如何在 R 中执行此操作?
x[:-1]
sin*_*dur 6
x[-length(x)] # or head(x, -1)
归档时间:
5 年 前
查看次数:
2813 次
最近记录: