Learn R Programming

rtweet (version 2.0.0)

ts_data: Converts tweets data into time series-like data object.

Description

Returns data containing the frequency of tweets over a specified interval of time. [Deprecated]

Usage

ts_data(data, by = "days", trim = 0L, tz = "UTC")

Value

Data frame with time, n, and grouping column if applicable.

Arguments

data

Data frame or grouped data frame.

by

Desired interval of time expressed as numeral plus one of "secs", "mins", "hours", "days", "weeks", "months", or "years". If a numeric is provided, the value is assumed to be in seconds.

trim

Number of observations to trim off the front and end of each time series

tz

Time zone to be used, defaults to "UTC" (Twitter default)

See Also

rtweet-deprecated