rtweet (version 0.3.6)

format_date: format_date

Description

format_date

Usage

format_date(x, date = FALSE)

Arguments

x

Date or datetime vector returned by a Twitter API.

date

Logical, indicating whether to return object of class date. Defaults to FALSE, thus returning datetime object (class = POSIXct).

Value

Date/datetime vector.

Examples

Run this code
# NOT RUN {
p <- get_timeline("potus", n = 3500)
p <- format_date(p$created_at)
head(p)
# }

Run the code above in your browser using DataLab