This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Country | Visits | Per New Visits | New Visits | Bounce Rate | Pages per Visit | Avg Visit Duration | |
|---|---|---|---|---|---|---|---|
| United Kingdom | 11472 | 37.89% | 4347 | 48.57% | 2.34 | 00:02:47 | |
| United States of America | 855 | 63.04% | 539 | 68.30% | 2.07 | 00:01:54 | |
| Germany | 280 | 43.57% | 122 | 47.14% | 2.51 | 00:02:30 | |
| Australia | 215 | 58.14% | 125 | 46.98% | 2.77 | 00:03:30 | |
| China | 137 | 50.36% | 69 | 56.20% | 2.18 | 00:03:15 | |
| Canada | 106 | 70.75% | 75 | 43.40% | 3.16 | 00:04:23 | |
| South Africa | 92 | 36.96% | 34 | 23.91% | 3.86 | 00:06:19 | |
| Netherlands | 88 | 60.23% | 53 | 53.41% | 3.06 | 00:01:55 | |
| Japan | 77 | 53.25% | 41 | 41.56% | 2.92 | 00:02:42 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var d3 = require('d3') | |
| , _ = require('underscore') | |
| , w = window.innerWidth | |
| , h = window.innerHeight - 100 | |
| , tempo = 500 | |
| // , data = { | |
| // 'Derek Jeter' : { | |
| // '1995' : [12, 48] | |
| // , '1996' : [183, 582] | |
| // } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var d3 = require('d3') | |
| , _ = require('underscore') | |
| , w = window.innerWidth | |
| , h = window.innerHeight - 100 | |
| , tempo = 500 | |
| // , data = { | |
| // 'Derek Jeter' : { | |
| // '1995' : [12, 48] | |
| // , '1996' : [183, 582] | |
| // } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var d3 = require('d3') | |
| , _ = require('underscore') | |
| , w = window.innerWidth | |
| , h = window.innerHeight - 100 | |
| , tempo = 500 | |
| // , data = { | |
| // 'Derek Jeter' : { | |
| // '1995' : [12, 48] | |
| // , '1996' : [183, 582] | |
| // } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var d3 = require('d3') | |
| , _ = require('underscore') | |
| , w = window.innerWidth | |
| , h = window.innerHeight - 100 | |
| , tempo = 500 | |
| // , data = { | |
| // 'Derek Jeter' : { | |
| // '1995' : [12, 48] | |
| // , '1996' : [183, 582] | |
| // } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var d3 = require('d3') | |
| , _ = require('underscore') | |
| , w = window.innerWidth | |
| , h = window.innerHeight - 100 | |
| , tempo = 500 | |
| // , data = { | |
| // 'Derek Jeter' : { | |
| // '1995' : [12, 48] | |
| // , '1996' : [183, 582] | |
| // } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name | type | rating | lat | lon | |
|---|---|---|---|---|---|
| Baron Of Beef | Pub/bar/nightclub | 4 | 52.209025 | 0.118255 | |
| Bath House | Pub/bar/nightclub | 4 | 52.204115 | 0.11827 | |
| Boathouse P.H. | Pub/bar/nightclub | 4 | 52.213738 | 0.124159 | |
| BRB The Cow | Pub/bar/nightclub | 4 | 52.204222 | 0.120324 | |
| Champion Of The Thames | Pub/bar/nightclub | 5 | 52.207309 | 0.124159 | |
| Clarendon Arms | Pub/bar/nightclub | 5 | 52.204932 | 0.127807 | |
| Earl of Beaconsfield | Pub/bar/nightclub | 5 | 52.198334 | 0.142623 | |
| Earl Of Derby | Pub/bar/nightclub | 5 | 52.193371 | 0.133181 | |
| Green Dragon Public House | Pub/bar/nightclub | 5 | 52.21817 | 0.146081 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jb_pubdistance <- function( | |
| v_pubs=c("The Cambridge Brew House","The Cambridge Blue", | |
| "King Street Run P.H.","The Elm Tree","The Regal"), | |
| v_location="Cambridge, UK", | |
| v_zoom=13, | |
| listpubs=FALSE, | |
| cam_pubs=TRUE, | |
| crow_distances=FALSE, | |
| units="minutes"){ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| latlon_1 | latlon_2 | minutes | metres | |
|---|---|---|---|---|
| 52.209025,0.118255 | 52.204115,0.11827 | 8.5 | 692 | |
| 52.209025,0.118255 | 52.213738,0.124159 | 9.4 | 771 | |
| 52.209025,0.118255 | 52.204222,0.120324 | 8.2 | 658 | |
| 52.209025,0.118255 | 52.207309,0.124159 | 7.8 | 650 | |
| 52.209025,0.118255 | 52.204932,0.127807 | 13.7 | 1130 | |
| 52.209025,0.118255 | 52.198334,0.142623 | 28.1 | 2308 | |
| 52.209025,0.118255 | 52.193371,0.133181 | 25.5 | 2080 | |
| 52.209025,0.118255 | 52.21817,0.146081 | 30.4 | 2453 | |
| 52.209025,0.118255 | 52.230666,0.138805 | 41.3 | 3348 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is the server logic for a Shiny web application. | |
| # | |
| # Google sheets connection | |
| ## prepare the OAuth token and set up the target sheet: | |
| ## - do this interactively | |
| ## - do this EXACTLY ONCE | |
| # shiny_token <- gs_auth() # authenticate w/ your desired Google identity here |