Description Usage Arguments Value Author(s) Examples
View source: R/get_nonmobiles.R
Parse a vector of User Agent strings and return a binary vector identifying mobiles (1 = non-mobile, 0 = mobile).
1 | get_nonmobiles(ua_strings)
|
ua_strings |
A vector of User Agent strings. Note that missing values cannot be parsed and a vector with |
Binary vector the same length as ua_strings
(default).
Kyle Peyton <kyle.peyton@yale.edu>
1 2 3 4 5 6 7 | data(agents)
## Extract binary vector (1 = non-mobile, 0 = mobile)
nonmobiles <- get_nonmobiles(ua_strings = agents)
## proportion of "attentive" respondents (those not coming from mobile phones)
mean(nonmobiles)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.