Description Usage Arguments Value Author(s) See Also Examples
This function collects data from social media APIs, and structures the data
into a data frame of class dataSource.*
, ready for creating networks
for further analysis. Collect
is the second step of the
Authenticate
, Collect
, Create
workflow. This function is
a convenient UI wrapper to the core CollectDataFrom* family of functions.
1 |
credential |
|
ego |
logical, collecting ego network data. Currently only support Instagram. |
... |
additional parameters for data collection (refer to CollectDataFrom* and CollectEgo* functions)
|
A data.frame object of class dataSource.*
that can be used
with Create
.
Chung-hong Chan <chainsawtiney@gmail.com>
CollectDataFromFacebook
,
CollectDataFromInstagram
,
CollectDataFromYoutube
, CollectDatFromTwitter
,
CollectEgoInstagram
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
require(magrittr)
## Instagram ego network example
myAppID <- "123456789098765"
myAppSecret <- "abc123abc123abc123abc123abc123ab"
myUsernames <- c("senjohnmccain","obama")
Authenticate("instagram",
appID = myAappId,
appSecret = myAppSecret) %>% Collect(ego = TRUE,
username = myUsernames) %>% Create
## YouTube actor network example
my_apiKeyYoutube <- "314159265358979qwerty"
videoIDs <- c("W2GZFeYGU3s","mL27TAJGlWc")
Authenticate("youtube",
apiKey = my_apiKeyYoutube) %>% Collect(videoIDs = videoIDs) %>% Create('actor')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.