create_urldummy {webtrackR}R Documentation

Create an urldummy variable

Description

Create an urldummy variable

Usage

create_urldummy(wt, dummy, name)

Arguments

wt

webtrack data object

dummy

a vector of urls that should be dummy coded

name

name of dummy variable to create.

Value

webtrack object with the same columns and a new column called "name" including the dummy variable

Examples

## Not run: 
data("testdt_tracking")
wt <- as.wt_dt(testdt_tracking)
wt <- extract_domain(wt)
code_urls <- "https://dkr1.ssisurveys.com/tzktsxomta"
create_urldummy(wt, dummy = code_urls, name = "test_dummy")

## End(Not run)

[Package webtrackR version 0.3.1 Index]