问个R的问题: List of list里面有一个有数值,怎么找到他的最大值的index# DataSciences - 数据科学
N*n
1 楼
for example, list 里面有20 个
其中第20个,有两个item:
怎么根据auc 选出第一个的vars.select??
[[20]]$vars.select
[1] "V131" "V280" "V230" "V125" "V127" "V132" "V226" "V85" "V412" "V334" "
V305" "V354" "V328" "V413" "V202"
[16] "V417" "V2" "V165" "V13" "V378" "V262" "V179" "V289" "V77" "V394" "
V217" "V39" "V297" "V173" "V183"
[31] "V148" "V320" "V414" "V182" "V99" "V46" "V235" "V322" "V221" "V140" "
V176" "V418" "V256" "V345" "V91"
[46] "V40" "V49" "V48" "V111" "V310" "V340" "V164" "V350" "V83" "V307" "
V360" "V92" "V359" "V17" "V321"
[61] "V25" "V399" "V147" "V391"
[[20]]$auc
[1] 0.6514501
其中第20个,有两个item:
怎么根据auc 选出第一个的vars.select??
[[20]]$vars.select
[1] "V131" "V280" "V230" "V125" "V127" "V132" "V226" "V85" "V412" "V334" "
V305" "V354" "V328" "V413" "V202"
[16] "V417" "V2" "V165" "V13" "V378" "V262" "V179" "V289" "V77" "V394" "
V217" "V39" "V297" "V173" "V183"
[31] "V148" "V320" "V414" "V182" "V99" "V46" "V235" "V322" "V221" "V140" "
V176" "V418" "V256" "V345" "V91"
[46] "V40" "V49" "V48" "V111" "V310" "V340" "V164" "V350" "V83" "V307" "
V360" "V92" "V359" "V17" "V321"
[61] "V25" "V399" "V147" "V391"
[[20]]$auc
[1] 0.6514501