0
indices <- c(2,5,9)
customer是data.frame。通过传递索引的列表/向量来获取data.frame中值的列表/向量
我想索引的索引位置中的客户第2列的值列表。
names <- as.list(customer[,2] << indices)
indices <- c(2,5,9)
customer是data.frame。通过传递索引的列表/向量来获取data.frame中值的列表/向量
我想索引的索引位置中的客户第2列的值列表。
names <- as.list(customer[,2] << indices)
这听起来像你想从数据框中做一个简单的提取。请尝试:
customer[indices, 2]
Merci bien ........ – Selvam