Getting Started with Commuting Zones
#
1. Install RCommutingZones is an R package, therefore, it is necessary to have R version 4.0.0 (or higher) installed in order to run the code. R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS. To download R, please choose your preferred CRAN mirror.
If you have questions about R like how to download and install the software, or what the license terms are, please read their answers to frequently asked questions before you send an email.
#
2. Installing the Commuting Zones PackageSince CommutingZones is currently only available on GitHub, the remotes
package is a pre-requisite to install it. If you haven't installed this package yet, first run:
install.packages("remotes", repos='http://cran.us.r-project.org')
To install the package, simply run the following commands.
install.packages("remotes")remotes::install_github("facebookincubator/CommutingZones")library(CommutingZones)
#
3. Using Commuting Zones for Geo-experimentsFinally, to run geo-experiments using the Commuting Zones, we recommend downloading and installing GeoLift
, an open source R package from Meta Marketing Science. Detailed instructions on how to get it can be found on this chapter as well as on GeoLift's website.