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.
indices <- c(2,5,9)
顧客はdata.frameです。
インデックスのインデックス位置にあるcustomerの列2の値のリストが必要です。
names <- as.list(customer[,2] << indices)
データフレームから簡単に抽出したいようです。試す:
customer[indices, 2]