我想用Statsbomb在他们的github页面上公开提供的一些足球数据进行实验。下面是其中一个JSON的列表,该列表来自可用的github页面:
https://raw.githubusercontent.com/statsbomb/open-data/master/data/events/7298.json
我的问题是,我如何才能将它放入R中?我尝试过以下几种方法:
httr::content(httr::GET("https://raw.githubusercontent.com/statsbomb/open-data/master/data/events/7298.json"))
但是,这只是返回一个长度为1的字符向量,整个JSON都被压缩到字符串中。我更希望这是一个列表列表。我怎么能这样做呢?
谢谢!!
编辑:here is Statsbomb's public github repo -如果它有任何帮助的话!
https://stackoverflow.com/questions/51333430
复制相似问题