我从api获取以下哈希并需要解析它,以便我可以访问值为name
的字段Southern Company (SO).
。令我困惑的是,看起来像数组是在哈希内部构建的,我很难解析它。
#<OmniAuth::AuthHash _total=1 values=[#<OmniAuth::AuthHash company=#<OmniAuth::AuthHash id=157357 industry="Utilities" name="Southern Company (SO)" size="10,001+ employees" ticker="SCE" type="Public Company"> id=695794923 isCurrent=true startDate=#<OmniAuth::AuthHash month=1 year=2015> summary="•\tDeveloper " title="Jr.Developer">]>
答案 0 :(得分:0)
你试过吗?:
l[['a']] <- c(4,5)