Skip to content

Instantly share code, notes, and snippets.

@jm3
Created May 20, 2012 19:15
Show Gist options
  • Save jm3/2759192 to your computer and use it in GitHub Desktop.
Save jm3/2759192 to your computer and use it in GitHub Desktop.
tweet stats calculated with R
> summary(tweets)
date tweet tweet_id hashtag at_mention at_message
Min. :2006-12-12 06:40:00 Length:3352 10013526554: 1 Mode :logical Mode :logical Mode :logical
1st Qu.:2008-07-11 14:42:00 Class :character 10013835266: 1 FALSE:3005 FALSE:1746 FALSE:2752
Median :2009-12-19 14:03:00 Mode :character 10032221537: 1 TRUE :347 TRUE :1606 TRUE :600
Mean :2009-06-15 05:59:36 1003282393 : 1 NA's :0 NA's :0 NA's :0
3rd Qu.:2010-05-31 20:23:00 1004226635 : 1
Max. :2012-05-18 00:42:00 100425822 : 1
(Other) :3346
RT link proof_related link_pos.start link_pos.end
Mode :logical Mode :logical Mode :logical Min. : 1.0000000000 Min. : 4.0000000000
FALSE:2501 FALSE:2433 FALSE:3267 1st Qu.: 34.0000000000 1st Qu.: 37.0000000000
TRUE :851 TRUE :919 TRUE :85 Median : 63.0000000000 Median : 66.0000000000
NA's :0 NA's :0 NA's :0 Mean : 62.2933478735 Mean : 65.2933478735
3rd Qu.: 91.0000000000 3rd Qu.: 94.0000000000
Max. : 132.0000000000 Max. : 135.0000000000
NA's :2435.0000000000 NA's :2435.0000000000
RT_pos.start RT_pos.end mention_pos.start mention_pos.end
Min. : 1.00000000000 Min. : 2.00000000000 Min. : 1.0000000000 Min. : 1.0000000000
1st Qu.: 1.00000000000 1st Qu.: 2.00000000000 1st Qu.: 1.0000000000 1st Qu.: 1.0000000000
Median : 1.00000000000 Median : 2.00000000000 Median : 4.0000000000 Median : 4.0000000000
Mean : 4.54237288136 Mean : 5.54237288136 Mean : 21.3542963885 Mean : 21.3542963885
3rd Qu.: 1.00000000000 3rd Qu.: 2.00000000000 3rd Qu.: 25.7500000000 3rd Qu.: 25.7500000000
Max. : 133.00000000000 Max. : 134.00000000000 Max. : 138.0000000000 Max. : 138.0000000000
NA's :2880.00000000000 NA's :2880.00000000000 NA's :1746.0000000000 NA's :1746.0000000000
length
Min. : 1.00
1st Qu.: 50.00
Median : 84.00
Mean : 83.85
3rd Qu.:123.00
Max. :140.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment