
Last chance! 50% off unlimited learning
Sale ends in
dataSource.*.ego
. The networks are igraph objects.CreateEgoNetworkFromData(x, writeToFile)
dataSource.*.ego
TRUE
then the network is saved to file
in current working directory (GRAPHML format), with filename denoting the
current date/time and the type of network.
## 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")
## ---------------------------------------------
Run the code above in your browser using DataLab