Last data update: 2014.03.03

R: Parse tweets from JSON files and import to R
t2DataFrameR Documentation

Parse tweets from JSON files and import to R

Description

A function to parse JSON files containing tweets stroed using the function tweet2r. Tweets are stored as a data.frame ready to be use within R.

Usage

t2DataFrame(fileprefix)

Arguments

fileprefix

File prefix for JSON files where tweets has been stored after harvesting. If tweets have been retrieved with the tweet2r function it should be the same fileprefix name.

Value

tweets

Return harvested tweets with tweet2r as a data.frame.

Author(s)

Pau Arag<c3><83><c2><b3> Galindo parago@uji.es

See Also

tweet2r, streamR

Examples


## Not run: 

  #json file prefix names
  fileprefix="tweets"
  
  #function to parse tweets from JSON file and import to R
  tweets<-t2DataFrame(fileprefix)
  
## End(Not run)

Results