-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9172438
commit f03603d
Showing
6 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
Package: h3forr | ||
Title: An R Interface to H3 | ||
Version: 0.1.2 | ||
Version: 0.1.3 | ||
Date: 2018-11-23 | ||
Authors@R: person("Stefan", "Kuethe", role = c("aut", "cre"), email = "[email protected]") | ||
Maintainer: Stefan Kuethe <[email protected]> | ||
Description: Provides R bindings for H3 <https://uber.github.io/h3/>, | ||
Uber's hexagonal hierarchical spatial indexing system. | ||
URL: https://github.com/crazycapivara/h3forr/ | ||
BugReports: https://github.com/crazycapivara/h3forr/issues/ | ||
License: MIT + file LICENSE | ||
Depends: R (>= 3.3) | ||
Imports: | ||
V8, | ||
magrittr, | ||
purrr | ||
purrr, | ||
tibble | ||
Suggests: | ||
sf, | ||
testthat | ||
|
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#' @importFrom tibble tibble | ||
NULL | ||
|
||
#' Persons in manhattan | ||
#' | ||
#' @format a tibble with 13987 rows and 3 variables: | ||
#' \describe{ | ||
#' \item{lng}{longitude} | ||
#' \item{lat}{latitude} | ||
#' \item{sex}{1: male, 2: female} | ||
#' } | ||
#' | ||
#' @source \url{https://raw.githubusercontent.com/uber-common/deck.gl-data/master/examples/scatterplot/manhattan.json} | ||
"manhattan" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
library(jsonlite) | ||
library(tibble) | ||
|
||
data_url <- paste0( | ||
"https://raw.githubusercontent.com/", | ||
"uber-common/deck.gl-data/", | ||
"master/examples/scatterplot/manhattan.json" | ||
) | ||
|
||
manhattan <- data_url %>% | ||
read_json(simplifyVector = TRUE) %>% | ||
as_tibble() | ||
|
||
names(manhattan) <- c("lng", "lat", "sex") | ||
# manhattan <- as.matrix(manhattan) |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.