Learn R Programming

twitteR (version 1.1.9)

import_statuses: Functions to import twitteR objects from various sources

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

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

See Also

status, user

Examples

Run this code
   ## Not run: 
#       status_list = import_statuses(list_of_status_json)   
#    ## End(Not run)

Run the code above in your browser using DataLab