Created
September 24, 2013 12:08
-
-
Save randyzwitch/6683790 to your computer and use it in GitHub Desktop.
Read in Adobe Analytics raw data feed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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