Learn R Programming

rtweet (version 0.3.7)

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)
# ## End(Not run)

Run the code above in your browser using DataLab