read_tweets_data: Read tweets data from disk

Description Usage Arguments Details Value

View source: R/rtweet_extensions.R

Description

Given a vector of file paths, function returns a (row-stacked) data frame object of the contained tweets data

Usage

1
2
3
read_tweets_data(paths, fields = tw_status_cols(status.location = FALSE,
  user.bio = FALSE, user.engagements = FALSE, user.profile = FALSE,
  user.misc = FALSE), read.fun = readRDS)

Arguments

paths

character vector specifiying the paths to twitter data files

fields

names of columns (fields) to be extracted and row-binded in output data frame

read.fun

reader function (needs to be compatible with formats of files passed to paths)

Details

The files to be read need to be tweet data frame as returned by rtweet's lookup_statuses. The file format needs to be readable by the reader function passed to parameter read.fun.

Value

A tibble data frame with columns as specified by argument fields


haukelicht/twscrape documentation built on Jan. 29, 2020, 3:23 p.m.