如何从 Bloomberg 获取带有 bdp 函数(来自 Rblpapi)的列表查询字段到 R?
How do I get a list query field with bdp function (from Rblpapi) from Bloomberg into R?
我正在尝试通过 Rblpapi::bdp()
从彭博请求数据。
我要获取的查询字段包含特定杠杆贷款交易的发起人列表(字符串列表)。
fieldInfo("SPNR_LIST")
显示类型:
fieldInfo("SPNR_LIST")
id mnemonic datatype ftype
SPNR_LIST DX392 SPNR_LIST String BulkFormat
我的例子:
bdp(securities = "BL0739252 Corp", fields = "SPNR_LIST")
示例错误:
Error in bdp_Impl(con, securities, fields, options, overrides,
verbose,: Attempt to access value of element 'SPNR_LIST'(type:
'SPNR_LIST') as 'String' type.
我怎样才能获得交易赞助商的完整列表?
P.S。使用 verbose = T
选项 bdp
returns:
> bdp(securities = "BL0739252 Corp", fields = "SPNR_LIST", verbose = T)
ReferenceDataResponse = {
securityData[] = {
securityData = {
security = "BL0739252 Corp"
eidData[] = {
}
fieldExceptions[] = {
}
sequenceNumber = 0
fieldData = {
SPNR_LIST[] = {
SPNR_LIST = {
Group Date = 2013-05-28
Sponsor = "Carlyle Group/The"
}
SPNR_LIST = {
Group Date = 2013-02-04
Sponsor = "Carlyle Group/The"
}
}
}
}
}
}
Error in bdp_Impl(con, securities, fields, options, overrides,
verbose,: Attempt to access value of element 'SPNR_LIST'(type:
'SPNR_LIST') as 'String' type.
感谢您对此提供的任何帮助。我希望我已经足够清楚地描述了我的问题。
使用 bds 可以达到目的:
bds(security = "BL0739252 Corp", field = "SPNR_LIST")
@assylias 解决了我的问题,再次感谢伙计。
我正在尝试通过 Rblpapi::bdp()
从彭博请求数据。
我要获取的查询字段包含特定杠杆贷款交易的发起人列表(字符串列表)。
fieldInfo("SPNR_LIST")
显示类型:
fieldInfo("SPNR_LIST")
id mnemonic datatype ftype
SPNR_LIST DX392 SPNR_LIST String BulkFormat
我的例子:
bdp(securities = "BL0739252 Corp", fields = "SPNR_LIST")
示例错误:
Error in bdp_Impl(con, securities, fields, options, overrides, verbose,: Attempt to access value of element 'SPNR_LIST'(type: 'SPNR_LIST') as 'String' type.
我怎样才能获得交易赞助商的完整列表?
P.S。使用 verbose = T
选项 bdp
returns:
> bdp(securities = "BL0739252 Corp", fields = "SPNR_LIST", verbose = T)
ReferenceDataResponse = {
securityData[] = {
securityData = {
security = "BL0739252 Corp"
eidData[] = {
}
fieldExceptions[] = {
}
sequenceNumber = 0
fieldData = {
SPNR_LIST[] = {
SPNR_LIST = {
Group Date = 2013-05-28
Sponsor = "Carlyle Group/The"
}
SPNR_LIST = {
Group Date = 2013-02-04
Sponsor = "Carlyle Group/The"
}
}
}
}
}
}
Error in bdp_Impl(con, securities, fields, options, overrides, verbose,: Attempt to access value of element 'SPNR_LIST'(type: 'SPNR_LIST') as 'String' type.
感谢您对此提供的任何帮助。我希望我已经足够清楚地描述了我的问题。
使用 bds 可以达到目的:
bds(security = "BL0739252 Corp", field = "SPNR_LIST")
@assylias 解决了我的问题,再次感谢伙计。