【发布时间】:2015-09-26 15:00:52
【问题描述】:
看看http://associates-amazon.s3.amazonaws.com/signed-requests/helper/index.html
以下名称-值对:
Service=AWSECommerceService
Version=2011-08-01
AssociateTag=PutYourAssociateTagHere
Operation=ItemSearch
SearchIndex=Books
Keywords=harry+potter
Timestamp=2015-09-26T14:10:56.000Z
AWSAccessKeyId=123
名称-值对已按字节顺序排序
应该会导致
AWSAccessKeyId=123
AssociateTag=PutYourAssociateTagHere
Keywords=harry%20potter
Operation=ItemSearch
SearchIndex=Books
Service=AWSECommerceService
Timestamp=2015-09-26T14%3A10%3A56.000Z
Version=2011-08-01
如何在 R 中实现这一点?
据我所知,它们是按其排序的
as.numeric(charToRaw(name)) 值。如果第一个值相等,则它们按第二个排序,然后是第三个,依此类推。
问题:如何在 R 中做到这一点?
【问题讨论】:
标签: r sorting amazon-web-services amazon-product-api endianness