Description Usage Arguments Value Note Author(s) Examples
View source: R/CreateEgoNetworkFromData.R
This function creates 'ego' networks from social media data as a data.frame
of class dataSource.*.ego
. The networks are igraph objects.
1 | CreateEgoNetworkFromData(x, writeToFile)
|
x |
a data.frame of class |
writeToFile |
logical. If |
An igraph graph object, with directed and weighted edges.
Similarly named function CreateEgoNetwork
is a function of both
collecting data from social media and creating ego network. The current
function only creates ego network out of collected social media data.
Timothy Graham <timothy.graham3@uq.net.au>, Robert Ackland<robert.ackland@anu.edu.au> & Chung-hong Chan <chainsawtiney@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
myAppID <- "123456789098765"
myAppSecret <- "abc123abc123abc123abc123abc123ab"
instagram_oauth_token <- AuthenticateWithInstagramAPI(appID=myAppID,
appSecret=myAppSecret, useCachedToken=TRUE)
myUsernames <- c("senjohnmccain","obama")
instagramEgodata <- CollectEgoInstgram(username=myUsernames,
verbose=TRUE,degreeEgoNet=1,
waitForRateLimit=TRUE,getFollows=FALSE)
CreateEgoNetoworkFromData(instagramEgodata)
## the same as Create(instagramEgodata) or Create(instagramEgodata, "ego")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.