get_visits: Get number of visits for a given URL

Description Usage Arguments Details

Description

Get number of visits for a given URL

Usage

1
2
get_visits(conn, table = "visites_par_jour", visited_urls = NULL,
  from = "2017-01-01", to = Sys.Date())

Arguments

conn

a connection to the database from which the data is retrieved

table

the table name from which the data is agregated

visited_urls

a vector of urls

Details

This function only retains one hit per visit (in the meaning of piwik). Only non-zero values are kept; in order to show zero values, please use tidyr::complete.


joelgombin/detectR documentation built on May 21, 2019, 7:55 a.m.