在RFacebook中使用getPage函数从Facebook页面提取数据时,它会在消息列中返回NA值,特别是当类型列具有值“photo”或“link”时。
目前使用的代码:
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,文本“wet n wild #FergieGelLiner ...”作为NA。
关于此的任何指示?
提前致谢。