0
indices <- c(2,5,9)

客户是一个data.frame。

我想要索引索引位置中客户第 2 列的值列表。

names <- as.list(customer[,2] << indices)
4

1 回答 1

3

听起来您想从数据框中进行简单的提取。尝试:

customer[indices, 2]
于 2012-10-20T13:13:31.113 回答