Skip to content

Instantly share code, notes, and snippets.

@randyzwitch
Created September 24, 2013 12:08
Show Gist options
  • Save randyzwitch/6683790 to your computer and use it in GitHub Desktop.
Save randyzwitch/6683790 to your computer and use it in GitHub Desktop.
Read in Adobe Analytics raw data feed
#Unzip file
unzip(zipfile= "/Volumes/32SDCARD/Data Sciences - General/SampleDailyDataFeed.zip", exdir= "~/Desktop/datafeed")
#Read in hit data
hit_data <- read.delim("~/Desktop/datafeed/hit_data.tsv", header=FALSE, stringsAsFactors = FALSE)
#Read in header to set column names
column_headers <- read.delim("~/Desktop/datafeed/column_headers.tsv")
#Set column headers for hit data to the column headers for 'column headers'
#If it's not clear what's going on here, run names(column_headers) in the console
names(hit_data) <- names(column_headers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment