Learn R Programming

tweet2r

Twitter streming Collector and Export to SQLite, 'postGIS', shapefile, KML, GML.

This is an improved implementation of the package 'StreamR' to capture tweets and store it into R, SQLite, 'postGIS' data base or GIS format. The package performs a description of harvested data and aommit space time exploratory analysis.

A typical workflow is (1) streaming data with tweet2r(), then (2) validate the recieved files with valjson() and (3) proceed with accumulating the individual files into a database, e.g. with t2sqlite(). Last but not least (4) you can attach an exprotative analysis with t2summary().

The tweet2r package is in R-Cran repository, https://cran.r-project.org/web/packages/tweet2r/index.html

Copy Link

Version

Install

install.packages('tweet2r')

Monthly Downloads

69

Version

1.1

License

GPL-3 | file LICENSE

Maintainer

Last Published

July 11th, 2018

Functions in tweet2r (1.1)

t2pgis

Set up parameters to JSON parsing and export it to a postGIS database.
t2SpatialPointDataFrame

Extract geotagged tweets stored as a data.frame
tweet2r-package

Access to Twitter Streaming API via R and perform a exploratory space-time analyis
t2summary

Summary from retrieved tweets
tspan

Exploratory point pattern analysis.
tglm

Generalized Linear Model for tweets
theatmap

Plot a heat map from geotweets or SpatialPointsDataFrame
valjson

Json validation function
t2DataFrame

Parse tweets from JSON files and import to R
tweet2r

Set up parameters to file streaming and store tweets in a JSON file using Twitter Streaming API .
t2gis

Export Tweeter with geotag in Sqlite table to KML, shapefiles or GML
t2STIDF

Create objects of class STIDF
t2sqlite

Export TweeterJSON files to sqlite database and import to R as a Data Frame
tsubset

Subset points from geotweets or SaptialPointsDataFrame