topHashtagsInInterval: Top Hashtags in intervall

Description Usage Arguments Value Examples

Description

Retrives the most used hashtags in a given time interval

Usage

1
topHashtagsInInterval(mongo, interval, amount = 10)

Arguments

mongo

a mongoDB connection to use (default: hometimeline)

interval

a time interval which can be generated by getInterval needs to be in unix timestamp format

amount

limits the number of hashtags returned

Value

list of hashtags

Examples

1
2
3
4
5
#topHashtagsInInterval(hometimeline, interval = getInterval(60*24), 10)
#or alternatively specify interval beforehand
#timeframe <- c("2016-01-04 18:37:43 CET","2016-01-05 18:37:43 CET")
#hashtags <- topHashtagsInInterval(hometimeline, interval =
#getInterval(inputinterval = timeframe), 10)

ProjectTw/TwitteR2Mongo documentation built on May 8, 2019, 3:44 a.m.