对于一个数据表D,可以用D[1:5,]选出前5行,可为什么不能对其中一列d1,使用D$d1[1:5,]这种选出前五行呢,刚学还请详解一下
正确的选法是 D$d1[1:5]
https://blog.csdn.net/u014600308/article/details/78946768