drop_query {webtrackR} | R Documentation |
Drop the query and fragment from URL
Description
drop_query()
adds the URL without query and fragment as a new column.
The query is defined as the part following a "?" after the path.
The fragement is anything following a "#" after the query.
Usage
drop_query(wt, varname = "url")
Arguments
wt |
webtrack data object. |
varname |
character. name of the column from which to extract the host.
Defaults to |
Value
webtrack data.frame with the same columns as wt
and a new column called '<varname>_noquery'
Examples
## Not run:
data("testdt_tracking")
wt <- as.wt_dt(testdt_tracking)
# Extract URL without query/fragment
wt <- drop_query(wt)
## End(Not run)
[Package webtrackR version 0.3.1 Index]