createSearchFromTags: Convert a list of hashtags to a Twitter search string

View source: R/createSearchFromTags.R

createSearchFromTagsR Documentation

Convert a list of hashtags to a Twitter search string

Description

It's usually easier to keep the hashtags you want to search for in an R list. This function creates a proper API search using the operator you specify.

Usage

createSearchFromTags(ht, op = "OR")

Arguments

ht

the list of tags created using (e.g.) hashTags <- c("tag1", "tag2")

op

how to combine hashtag strings, default = OR

Details

Do not include # in the list elements as this will be added automatically

Author(s)

Ben Anderson, banderson@soton.ac.uk

See Also

Other tweets: getHashtags(), getTweets(), loadTweets(), processTweets()


dataknut/hashTagR documentation built on Sept. 20, 2023, 7:24 a.m.