1
我試圖從twitter數據中獲取像@someone @somebody這樣的twitter數據提及,並使用推特和他們提到的人的信息創建新的數據框。識別提及的評論和填充數據框
例子:
tweets <- data.frame(user=c("people","person","ghost"),text = c("Hey, check this out
@somebody @someone","love this @john","amazing"))
得到的這個數據幀:
**user text**
*people Hey, check this out @somebody @someone*
*person love this @john*
*ghost amazing*
期望的結果是:
**id mention**
*people @somebody*
*people @someone*
*person john*
*ghost*
你們能幫助我,好嗎?