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

顧客はdata.frameです。

インデックスのインデックス位置にあるcustomerの列2の値のリストが必要です。

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

1 に答える 1

3

データフレームから簡単に抽出したいようです。試す:

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