Description Usage Arguments Value Author(s) Examples
Parse a vector of User Agent strings and return a binary vector identifying browsers (1 = browser, 0 = web application).
1 | get_browsers(ua_strings, verbose = FALSE)
|
ua_strings |
A vector of User Agent strings. Note that missing values cannot be parsed and a vector with |
verbose |
If verbose = TRUE, returns a dataframe with detailed output. This information can be used for customized classification based on User Agent strings. Note that this is effectively a wrapper for |
Binary vector the same length as ua_strings
(default). If verbose = TRUE, a dataframe with nrows the same as vector length and 10 columns of detailed information parsed by uaparserjs
.
Kyle Peyton <kyle.peyton@yale.edu>
1 2 3 4 5 6 7 | data(agents)
## Extract binary vector (1 = browser; 0 = web application)
browsers <- get_browsers(ua_strings = agents)
## proportion of "attentive" respondents (those not coming from web apps)
mean(browsers)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.