Places/Stats

< Places
Revision as of 22:35, 12 June 2009 by Andyed (talk | contribs) (Documenting dataset cleaning & initial R code)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Context

See Places-Stats.mozilla


Analysis

Goals:

  • Insights into usage of bookmarks history
  • Use open source tools to create and iterate on reproducible analysis of the places stats data set
  • [Andyed] Investigate potential to provide updated stats to the research community for historical longitudinal stats

Toolset

  • R
  • GGobi

Code

See the Etherpad Page for the scratchpad

Load Data

places <- read.csv("...places.csv")

Compute age metrics

places$oldest_stamp = as.POSIXct(strptime(as.character(places$visit_date_oldest),format="%m/%d/%y %H:%M"))
places$newest_stamp = as.POSIXct(strptime(as.character(places$visit_date_newest),format="%m/%d/%y %H:%M"))
places$time_delta = difftime(places$newest_stamp,places$oldest_stamp, units="days")

Tags & Bookmark Metrics

places$bookmark_tagged_pct = (places$bookmark_cnt - places$bookmark_nontag_cnt )/ places$bookmark_cnt
places$folder_cnt_crrctd = places$folder_cnt - places$bookmark_cnt