loadTweets: Loads tweets that match a given search string from a...

View source: R/loadTweets.R

loadTweetsR Documentation

Loads tweets that match a given search string from a pre-saved file

Description

loadTweets takes a string and loads all files in a given path which have this name using readr

Usage

loadTweets(path, pattern, noisy = FALSE)

Arguments

path

place to look for saved file - gets passed to list.files()

pattern

the pattern to match - passed to list.files()

noisy

do we give feedback or not (default = FALSE)

Details

If no matches, returns nothing but gives feedback.

If there are matches, rbinds them all into a tbl, gives feedback and returns the tbl as a data.table for further fun.

Note that list.files() is NOT recursive so it will search only in the path given.

Author(s)

Ben Anderson, b.anderson@soton.ac.uk

See Also

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


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