to_pageviews: filter a sampled log file to pageviews

Description Usage Arguments Value See Also Examples

View source: R/filter.R

Description

is_pageview accepts a sampled log file, read with read_sampled_log, and filters it to those rows that meet the existing definition of "pageview", which is described here.

Usage

1

Arguments

data

a data.frame returned from read_sampled_log.

Value

a data.frame with the same attributes as that of read_sampled_log, but only containing "pageviews".

See Also

read_sampled_log, for retrieving the sampled logs in the first place.

Examples

1
2
3
#Get the latest day's pageviews
files <- get_files()
data <- to_pageviews(read_sampled_log(files[length(files)]))

wikimedia-research/pageviews documentation built on May 4, 2019, 5:24 a.m.