as_clickstream: as_clickstream() Convert to clickstream data

Description Usage Arguments Details Value Examples

View source: R/web-as_clickstream.R

Description

Converts brownie data into clickstream data to do further analysis with the package clickstream. With the clickstream package, it's possible to build markov models and plot transition graphs. Additionally this function has a implementation of the attribution models "first" or "last". Attribution models describe how to deal with occurencies of more than one objective a subject does. In other words, which objective should be used if the user completed more than one objective.

Usage

1
as_clickstream(data, objectives = F, attribution = "last")

Arguments

data

a brownie dataframe

objectives

can be either FALSE or a labeled vector of URLs

attribution

a character, either "first" or "last"

Details

Function keeps only URLs with events "URL Change" and "first URL", after that it creates a list where each list item represents a subject. A subject is a progression of urls a participant follow. A progression ends with the label of the first or last occurrence (attribution model) of an objective else it ends with "Defer".

Value

list of class "clickstreams"

Examples

1
2
3
import("datafortestingplot/", "amz")
objective  <- c("Harry Potter Special angesehen!" = summary(amz_web)[41,1])
as_clickstream(amz_web, objective, "first")

Fiddleman/BrownieR documentation built on May 6, 2019, 4:36 p.m.