R 语言 是否使用which的区别

> final_wei
  is_litigation is_warrant is_integrity is_review forth_sub_ave   type is_method
1             0    -0.1848       0.1425         0        0.0581 0.1848   0.06607
  left_year rtl_year t_importance cited_count period sub_amount app_amount is_range_wide
1  -0.08074  0.03577            0    -0.01461      0          0          0        0.1604
  count_ipc cite_count avr_amt avr_hold   lisence transfer
1   0.01393   -0.01004       0        0 -0.008525 0.007483

> final_wei>0.1
     is_litigation is_warrant is_integrity is_review forth_sub_ave type is_method
[1,]         FALSE      FALSE         TRUE     FALSE         FALSE TRUE     FALSE
     left_year rtl_year t_importance cited_count period sub_amount app_amount
[1,]     FALSE    FALSE        FALSE       FALSE  FALSE      FALSE      FALSE
     is_range_wide count_ipc cite_count avr_amt avr_hold lisence transfer
[1,]          TRUE     FALSE      FALSE   FALSE    FALSE   FALSE    FALSE

> final_wei[final_wei>0.1]
[1] 0.1425 0.1848 0.1604

> which(final_wei>0.1)
[1]  3  6 15

> final_wei[which(final_wei>0.1)]
  is_integrity   type is_range_wide
1       0.1425 0.1848        0.1604

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值