Learn R Programming

tweet2r (version 1.1)

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

Description

This functions import geotagged tweets as SpatialPointDataFrame from a Sqlite database containing the tweets and export it in a GIS format

Usage

t2gis(dbname, export)

Arguments

dbname

It is the Sqlite Database name where the tweets are stored. Sqlite is embedded in R within the package RSQLite. Sqlite database have no field extension. More information about Sqlite it its web page.

export

Export the tweets stored in the sqlite database to shape file, GML or KML. It imports only the geotagged tweets. The options are; shp (by default option), kml, gml. Note that only will be exported if there are geotweets.

See Also

RSQLite, t2sqlite

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
#File prefix name for json files and also the name of the database
dbname=tweets
#export option to a GIS format
export="shp"

t2sqlite(dbname, export)
# }

Run the code above in your browser using DataLab