import_statuses: Functions to import twitteR objects from various sources

Description Usage Arguments Value Author(s) See Also Examples

Description

Functions designed to import data into twitteR objects from a variety of data sources. Currently only JSON is supported, and this entire branch of functionality should be considered experimental & under development.

Usage

1
2
3
4
5
6
7
import_statuses(raw_data, conversion_func = json_to_statuses)
import_trends(raw_data, conversion_func = json_to_trends)
import_users(raw_data, conversion_func = json_to_users)
import_obj(raw_data, conversion_func, ...)
json_to_users(raw_data)
json_to_statuses(raw_data)
json_to_trends(raw_data)

Arguments

raw_data

Data to be be parsed via the prescribed function

conversion_func

The function to convert raw_data into the specified twitteR object

...

Arguments to pass along to conversion_func

Value

A list of twitteR objects of the appropriate type, e.g. status, user, etc

Author(s)

Jeff Gentry

See Also

status, user

Examples

1
2
3
4
   ## Not run: 
      status_list = import_statuses(list_of_status_json)   
   
## End(Not run)

twitteR documentation built on May 2, 2019, 6:46 a.m.