Learn R Programming

webtrackR (version 0.1.0)

audience_network: Create audience networks

Description

audience network

Usage

audience_network(wt, mode2 = "domain", cutoff = 3, type = "pmi", alpha = 0.05)

Value

audience network as igraph object

Arguments

wt

webtrack data object

mode2

character. name of column that includes the second mode (e.g. 'domain' or 'host')

cutoff

visits below this cutoff will not be considered as a visit

type

one of "pmi", "phi", "disparity", "sdsm, "or "fdsm".

alpha

significance level

Examples

Run this code
if (FALSE) {
data("testdt_tracking")
wt <- as.wt_dt(testdt_tracking)
wt <- add_duration(wt)
wt <- suppressWarnings(extract_domain(wt))
network <- audience_network(wt, type = "pmi", cutoff = 120)
}

Run the code above in your browser using DataLab