在看看http://associates-amazon.s3.amazonaws.com/signed-requests/helper/index.html如何排序字节顺序列表AWS通话
以下名称 - 值对:
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中做到这一点?
也许你还应该提到这需要'digest'和'RCurl'包才能工作 – Rentrop
@ Floo0,这要感谢我将它添加到代码段中。 –