Learn R Programming

rtweet (version 2.0.0)

set_fields: Create fields

Description

Choose which fields are used, by default all are returned. Usually all the first 3 are accepted together and the last two too.

Usage

set_fields(
  media = media_fields,
  poll = poll_fields,
  tweet = tweet_fields,
  place = place_fields,
  user = user_fields,
  list = list_fields
)

Value

A list with the fields requested ready to be used in your requests to the API.

Arguments

media

The fields you want from media_fields.

poll

The fields you want from poll_fields.

tweet

The fields you want from tweet_fields.

place

The fields you want from place_fields.

user

The fields you want from user_fields.

list

The fields you want from list_fields.

See Also

Fields

Examples

Run this code
set_fields()
set_fields(media = NULL)
set_fields(place = NULL, user = NULL)

Run the code above in your browser using DataLab