Skip to content

Instantly share code, notes, and snippets.

@randyzwitch
Created February 4, 2014 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save randyzwitch/8804163 to your computer and use it in GitHub Desktop.
Save randyzwitch/8804163 to your computer and use it in GitHub Desktop.
Examples of Search functionality for RSiteCatalyst v1.3
#Top 100 Pages where the pagename starts with "Categories"
#Uses searchKW argument
queue_ranked_pages_search <- QueueRanked("production",
"2013-01-01",
"2014-01-28",
c("pageviews", "visits"),
"page",
top = "100",
searchKW = "^Categories"
)
#Top 100 Pages where the pagename starts with "Categories" OR contains "Home Page"
#Uses searchKW and searchType arguments
queue_ranked_pages_search_or <- QueueRanked("mlcpwmproduction",
"2013-01-01",
"2014-01-28",
c("pageviews", "visits"),
"page",
top = "100",
searchKW = c("^Categories", "Home Page"),
searchType = "OR"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment