add_previous_visit | R Documentation |
add_previous_visit()
adds the previous visit, as determined by order of
timestamps as a new column The previous visit can be added as either the full URL,
the extracted host or the extracted domain, depending on level
.
add_previous_visit(wt, level = "url")
wt |
webtrack data object. |
level |
character. Either |
webtrack data.frame with the same columns as wt and
a new column called url_previous
,host_previous
or domain_previous.
.
## Not run:
data("testdt_tracking")
wt <- as.wt_dt(testdt_tracking)
# Adding previous full URL as new column
wt <- add_previous_visit(wt, level = "url")
# Adding previous host as new column
wt <- add_previous_visit(wt, level = "host")
# Adding previous domain as new column
wt <- add_previous_visit(wt, level = "domain")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.