当使用getPage函数在RFacebook中从Facebook页面中提取数据时,它在消息列中返回NA值,特别是当类型列具有“照片”或“链接”值时。
到目前为止所使用的代码:
page <- getPage(page="MAC", token, n = 5000, since = '2015/06/01',until = '2015/08/01', feed = T)
$ message : chr NA NA NA "Wow, MAC, you really nailed it with the Prep + Prime 24 Hour Eye Base. The best eye primer ever! :)" ...
$ type : chr "photo" "photo" "photo" "status" ...
可复制的例子:
案例1:- "https://www.facebook.com/photo.php?fbid=1033785533300415&set=o.16126780553&type=1“
对于案例1,文字“MAC提供给员工.”可以被完全提取出来。
对于案例2,“湿n野生#FergieGelLiner.”以娜的身份出现。
这上面有指点吗?
提前谢谢。
发布于 2015-08-24 12:59:52
当帖子不包含文本,只包含照片或链接时,就会发生这种情况。您可以检查文档中的每个字段意味着什么这里。
https://stackoverflow.com/questions/32181796
复制相似问题